File tree Expand file tree Collapse file tree 6 files changed +14
-13
lines changed Expand file tree Collapse file tree 6 files changed +14
-13
lines changed Original file line number Diff line number Diff line change 11{
22 "sinope" : {
3- "version" : " 1.6.3 " ,
3+ "version" : " 1.6.4 " ,
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" ,
Original file line number Diff line number Diff line change 4343
4444#REQUIREMENTS = ['PY_Sinope==0.1.7']
4545REQUIREMENTS = ['crc8==0.1.0' ]
46- VERSION = '1.6.3 '
46+ VERSION = '1.6.4 '
4747
4848DATA_DOMAIN = 'data_' + DOMAIN
4949
Original file line number Diff line number Diff line change 189189 }
190190)
191191
192- def setup_platform (
192+ async def async_setup_platform (
193193 hass : HomeAssistantType ,
194194 config_entry ,
195- add_entities ,
195+ async_add_entities ,
196196 discovery_info = None ,
197197) -> None :
198198 """Set up the sinope thermostats."""
@@ -239,7 +239,7 @@ def setup_platform(
239239 break
240240 i = i + 1
241241
242- add_entities (entities , True )
242+ async_add_entities (entities , True )
243243
244244 def set_outside_temperature_service (service ):
245245 """ send local outside temperature to thermostats"""
@@ -503,6 +503,7 @@ def extra_state_attributes(self):
503503 'backlight_idle' : self ._backlight_idle ,
504504 'display2' : self ._second_display ,
505505 'heat_level' : self ._heat_level ,
506+ 'pi_heating_demand' : self ._heat_level ,
506507 'rssi' : self ._rssi ,
507508 'wattage' : self ._wattage ,
508509 'wattage_override' : self ._wattage_override ,
Original file line number Diff line number Diff line change 134134 }
135135)
136136
137- def setup_platform (
137+ async def async_setup_platform (
138138 hass : HomeAssistantType ,
139139 config_entry ,
140- add_entities ,
140+ async_add_entities ,
141141 discovery_info = None ,
142142) -> None :
143143 """Set up the sinope light."""
@@ -190,7 +190,7 @@ def setup_platform(
190190 break
191191 i = i + 1
192192
193- add_entities (entities , True )
193+ async_add_entities (entities , True )
194194
195195 def set_light_keypad_lock_service (service ):
196196 """ lock/unlock keypad device"""
@@ -413,7 +413,7 @@ def operation_mode(self):
413413 # state. So we force the set_brightness each time.
414414
415415 def turn_on (self , ** kwargs ):
416- """ Turn the light on. """
416+ """ Turn the light on or set brightness . """
417417 brightness_pct = 100
418418 if kwargs .get (ATTR_BRIGHTNESS ):
419419 brightness_pct = \
Original file line number Diff line number Diff line change 55 "dependencies" : [],
66 "codeowners" : [" @claudegel" ],
77 "requirements" : [" crc8==0.1.0" ],
8- "version" : " 1.6.3 "
8+ "version" : " 1.6.4 "
99}
Original file line number Diff line number Diff line change 100100 }
101101)
102102
103- def setup_platform (
103+ async def async_setup_platform (
104104 hass : HomeAssistantType ,
105105 config_entry ,
106- add_entities ,
106+ async_add_entities ,
107107 discovery_info = None ,
108108) -> None :
109109 """Set up the Sinope switch."""
@@ -150,7 +150,7 @@ def setup_platform(
150150 break
151151 i = i + 1
152152
153- add_entities (entities , True )
153+ async_add_entities (entities , True )
154154
155155 def set_switch_keypad_lock_service (service ):
156156 """ lock/unlock keypad device"""
You can’t perform that action at this time.
0 commit comments