mirror of
https://github.com/home-assistant/core.git
synced 2025-12-23 04:19:34 +00:00
Fix min/max temp and humidity for homekit_controller climate (#23421)
* Fix min/max temp and humidity for homekit_controller climate. * Fix typo
This commit is contained in:
@@ -180,6 +180,12 @@ async def setup_accessories_from_file(hass, path):
|
||||
char.description = char_data['description']
|
||||
if 'value' in char_data:
|
||||
char.value = char_data['value']
|
||||
if 'minValue' in char_data:
|
||||
char.minValue = char_data['minValue']
|
||||
if 'maxValue' in char_data:
|
||||
char.maxValue = char_data['maxValue']
|
||||
if 'valid-values' in char_data:
|
||||
char.valid_values = char_data['valid-values']
|
||||
service.characteristics.append(char)
|
||||
|
||||
accessory.services.append(service)
|
||||
|
||||
Reference in New Issue
Block a user