diff --git a/README.md b/README.md index d378003..1ba3d8f 100644 --- a/README.md +++ b/README.md @@ -105,6 +105,8 @@ By default a sensor for current temperature is enabled. It's possible to enable To enable these optional sensors, click on the Kumo tile in Settings -> Devices and Services, go into the Devices section, click on the indoor unit (or Kumo Station) and enable them under Sensors. +**Note** that you will need to restart HmomeAssistant after enabling a new sensor type, due to [Issue 120](https://github.com/dlarrick/hass-kumo/issues/120). + ### Template Sensors For additional attributes not covered above, or if you require more customization, you can convert attributes to sensors using [templates](https://community.home-assistant.io/t/using-attributes-in-lovelace/72672). For example, here's a simple sensor for the target temperature. diff --git a/custom_components/kumo/climate.py b/custom_components/kumo/climate.py index 0d979f4..675b2bd 100644 --- a/custom_components/kumo/climate.py +++ b/custom_components/kumo/climate.py @@ -95,8 +95,8 @@ async def async_setup_entry(hass: HomeAssistantType, entry: ConfigEntry, async_a coordinators = hass.data[DOMAIN][entry.entry_id][KUMO_DATA_COORDINATORS] entities = [] - indor_unit_serials = await hass.async_add_executor_job(account.get_indoor_units) - for serial in indor_unit_serials: + indoor_unit_serials = await hass.async_add_executor_job(account.get_indoor_units) + for serial in indoor_unit_serials: coordinator = coordinators[serial] entities.append(KumoThermostat(coordinator)) _LOGGER.debug("Adding entity: %s", coordinator.get_device().get_name()) diff --git a/custom_components/kumo/kumo_cloud_setup.py b/custom_components/kumo/kumo_cloud_setup.py index dea863c..4b6a91d 100755 --- a/custom_components/kumo/kumo_cloud_setup.py +++ b/custom_components/kumo/kumo_cloud_setup.py @@ -1,6 +1,10 @@ #!/usr/bin/env python3 -""" Fetch required info from KumoCloud and produce HomeAssistant configuration - section for the units found there +""" Fetch required info from KumoCloud and produce HomeAssistant YAML + configuration section for the units found there + + NOTE: This code is legacy, not used anymore since switching to the `pykumo` + library. The Kumo integration no longer supports YAML configuration. + It's retained because it has some small utility as an example. """ import getpass diff --git a/custom_components/kumo/manifest.json b/custom_components/kumo/manifest.json index b2641b0..0ed70c7 100755 --- a/custom_components/kumo/manifest.json +++ b/custom_components/kumo/manifest.json @@ -5,7 +5,7 @@ "documentation": "https://github.com/dlarrick/hass-kumo", "dependencies": [], "codeowners": [ "@dlarrick" ], - "requirements": ["pykumo==0.3.6"], - "version": "0.3.7", + "requirements": ["pykumo==0.3.7"], + "version": "0.3.8", "homeassistant": "2021.12.0" }