Skip to content

Commit

Permalink
fix(weather): avoid crashes with empty initial condition
Browse files Browse the repository at this point in the history
  • Loading branch information
IATkachenko committed Jun 7, 2023
1 parent 96deddc commit d66c5c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/yandex_weather/weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def __init__(

self.hass = hass
self._attr_name = name
self._attr_condition = None
self._attr_unique_id = config_entry.unique_id
self._attr_device_info = self.coordinator.device_info
self._image_source = get_value(config_entry, CONF_IMAGE_SOURCE, "Yandex")
Expand Down

0 comments on commit d66c5c1

Please sign in to comment.