Skip to content

Commit

Permalink
fix: aiocloud version and known sensors
Browse files Browse the repository at this point in the history
  • Loading branch information
lhw committed Jul 10, 2024
1 parent 94e425f commit 0c314b6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ coverage.xml

# Home Assistant configuration
config/*
!config/configuration.yaml
!config/configuration.yaml

# Integration specific files
.access-token
4 changes: 2 additions & 2 deletions custom_components/cloudweatherproxy/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
3 changes: 2 additions & 1 deletion custom_components/cloudweatherproxy/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ pip>=24.1,<25.0
ruff==0.5.*
colorlog==6.8.*
homeassistant==2024.5.5
aiocloudweather==2024.7.0
aiocloudweather==2024.7.1

0 comments on commit 0c314b6

Please sign in to comment.