Skip to content

Commit 047d122

Browse files
authored
Merge pull request #70 from claudegel/min-max
Code fix for min max temp
2 parents c79bd37 + f91b819 commit 047d122

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

custom_components.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sinope": {
3-
"version": "1.6.9",
3+
"version": "1.7.0",
44
"local_location": "/custom_components/sinope/__init__.py",
55
"remote_location": "https://github.com/claudegel/sinope-gt125/tree/master/custom_components/__init__.py",
66
"visit_repo": "https://github.com/claudegel/sinope-gt125",

custom_components/sinope/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
#REQUIREMENTS = ['PY_Sinope==0.1.7']
4545
REQUIREMENTS = ['crc8==0.1.0']
46-
VERSION = '1.6.9'
46+
VERSION = '1.7.0'
4747

4848
DATA_DOMAIN = 'data_' + DOMAIN
4949

custom_components/sinope/climate.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -519,20 +519,20 @@ def extra_state_attributes(self):
519519
'wattage': self._wattage,
520520
'wattage_override': self._wattage_override,
521521
'server': self._server,
522-
'id': self._id}
522+
'id': str(self._id)}
523523

524524
@property
525525
def supported_features(self):
526526
"""Return the list of supported features."""
527527
return SUPPORT_FLAGS
528528

529529
@property
530-
def min_temp(self):
530+
def min_temp(self) -> float:
531531
"""Return the min temperature."""
532532
return self._min_temp
533533

534534
@property
535-
def max_temp(self):
535+
def max_temp(self) -> float:
536536
"""Return the max temperature."""
537537
return self._max_temp
538538

@@ -583,17 +583,17 @@ def hvac_modes(self):
583583
return SUPPORTED_HVAC_MODES
584584

585585
@property
586-
def current_temperature(self):
586+
def current_temperature(self) -> float:
587587
"""Return the current temperature."""
588588
return self._cur_temp
589589

590590
@property
591-
def target_temperature (self):
591+
def target_temperature(self) -> float:
592592
"""Return the temperature we try to reach."""
593593
return self._target_temp
594594

595595
@property
596-
def outside_temperature (self):
596+
def outside_temperature(self) -> float:
597597
"""Return the outside temperature we try to set."""
598598
return self._outside_temperature
599599

custom_components/sinope/light.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ def device_info(self):
358358
"identifiers": {(DOMAIN, self.unique_id)},
359359
"name": self.name,
360360
"manufacturer": "Sinopé",
361-
"device_id": self._id,
361+
"device_id": str(self._id),
362362
}
363363

364364
@property

custom_components/sinope/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
"dependencies": [],
66
"codeowners": ["@claudegel"],
77
"requirements": ["crc8==0.1.0"],
8-
"version": "1.6.9"
8+
"version": "1.7.0"
99
}

custom_components/sinope/switch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ def extra_state_attributes(self):
323323
'event timer': self._event_timer,
324324
'keypad': self._keypad,
325325
'server': self._server,
326-
'id': self._id,
326+
'id': str(self._id),
327327
}
328328

329329
@property

0 commit comments

Comments
 (0)