diff --git a/.gitignore b/.gitignore index 94fa16c..52726a6 100644 --- a/.gitignore +++ b/.gitignore @@ -14,4 +14,7 @@ coverage.xml # Home Assistant configuration config/* -!config/configuration.yaml \ No newline at end of file +!config/configuration.yaml + +# Integration specific files +.access-token \ No newline at end of file diff --git a/custom_components/cloudweatherproxy/manifest.json b/custom_components/cloudweatherproxy/manifest.json index ce8a662..1d1d445 100644 --- a/custom_components/cloudweatherproxy/manifest.json +++ b/custom_components/cloudweatherproxy/manifest.json @@ -12,7 +12,7 @@ "iot_class": "local_push", "issue_tracker": "https://github.com/lhw/cloudweatherproxy/issues", "requirements": [ - "aiocloudweather==2024.7.0" + "aiocloudweather==2024.7.1" ], - "version": "2024.6.0" + "version": "2024.7.3" } \ No newline at end of file diff --git a/custom_components/cloudweatherproxy/sensor.py b/custom_components/cloudweatherproxy/sensor.py index 953c1e3..ee0fef1 100644 --- a/custom_components/cloudweatherproxy/sensor.py +++ b/custom_components/cloudweatherproxy/sensor.py @@ -55,9 +55,10 @@ async def _new_dataset(station: WeatherStation) -> None: _LOGGER.debug("Adding %d sensors", len(new_sensors)) async_add_entities(new_sensors) for nsensor in new_sensors: - _LOGGER.debug("Adding new sensors [%s]: %s", unique_id, nsensor) nsensor.async_write_ha_state() + hass.data[DOMAIN]["known_sensors"] = known_sensors + cloudweather.new_dataset_cb.append(_new_dataset) entry.async_on_unload( lambda: cloudweather.new_dataset_cb.remove(_new_dataset)) diff --git a/requirements.txt b/requirements.txt index 9071f79..4c0445b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,4 +2,4 @@ pip>=24.1,<25.0 ruff==0.5.* colorlog==6.8.* homeassistant==2024.5.5 -aiocloudweather==2024.7.0 \ No newline at end of file +aiocloudweather==2024.7.1 \ No newline at end of file