Skip to content

Commit

Permalink
Merge pull request #70 from claudegel/min-max
Browse files Browse the repository at this point in the history
Code fix for min max temp
  • Loading branch information
claudegel authored Nov 24, 2024
2 parents c79bd37 + f91b819 commit 047d122
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion custom_components.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sinope": {
"version": "1.6.9",
"version": "1.7.0",
"local_location": "/custom_components/sinope/__init__.py",
"remote_location": "https://github.com/claudegel/sinope-gt125/tree/master/custom_components/__init__.py",
"visit_repo": "https://github.com/claudegel/sinope-gt125",
Expand Down
2 changes: 1 addition & 1 deletion custom_components/sinope/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

#REQUIREMENTS = ['PY_Sinope==0.1.7']
REQUIREMENTS = ['crc8==0.1.0']
VERSION = '1.6.9'
VERSION = '1.7.0'

DATA_DOMAIN = 'data_' + DOMAIN

Expand Down
12 changes: 6 additions & 6 deletions custom_components/sinope/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,20 +519,20 @@ def extra_state_attributes(self):
'wattage': self._wattage,
'wattage_override': self._wattage_override,
'server': self._server,
'id': self._id}
'id': str(self._id)}

@property
def supported_features(self):
"""Return the list of supported features."""
return SUPPORT_FLAGS

@property
def min_temp(self):
def min_temp(self) -> float:
"""Return the min temperature."""
return self._min_temp

@property
def max_temp(self):
def max_temp(self) -> float:
"""Return the max temperature."""
return self._max_temp

Expand Down Expand Up @@ -583,17 +583,17 @@ def hvac_modes(self):
return SUPPORTED_HVAC_MODES

@property
def current_temperature(self):
def current_temperature(self) -> float:
"""Return the current temperature."""
return self._cur_temp

@property
def target_temperature (self):
def target_temperature(self) -> float:
"""Return the temperature we try to reach."""
return self._target_temp

@property
def outside_temperature (self):
def outside_temperature(self) -> float:
"""Return the outside temperature we try to set."""
return self._outside_temperature

Expand Down
2 changes: 1 addition & 1 deletion custom_components/sinope/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ def device_info(self):
"identifiers": {(DOMAIN, self.unique_id)},
"name": self.name,
"manufacturer": "Sinopé",
"device_id": self._id,
"device_id": str(self._id),
}

@property
Expand Down
2 changes: 1 addition & 1 deletion custom_components/sinope/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"dependencies": [],
"codeowners": ["@claudegel"],
"requirements": ["crc8==0.1.0"],
"version": "1.6.9"
"version": "1.7.0"
}
2 changes: 1 addition & 1 deletion custom_components/sinope/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def extra_state_attributes(self):
'event timer': self._event_timer,
'keypad': self._keypad,
'server': self._server,
'id': self._id,
'id': str(self._id),
}

@property
Expand Down

0 comments on commit 047d122

Please sign in to comment.