Skip to content

Commit

Permalink
Reworked daily forecast uniqueId
Browse files Browse the repository at this point in the history
  • Loading branch information
briis committed Oct 21, 2024
1 parent a6f7860 commit 311350b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/weatherflow_forecast/weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ async def async_setup_entry(
name = DEFAULT_NAME
elif TYPE_CHECKING:
assert isinstance(name, str)
_LOGGER.debug("Setting up weather entity for station %s", name)

entities = [WeatherFlowWeather(coordinator, config_entry.data,
False, name, is_metric)]
Expand All @@ -73,7 +74,7 @@ async def async_setup_entry(

def _calculate_unique_id(config: MappingProxyType[str, Any], hourly: bool) -> str:
"""Calculate unique ID."""
name_appendix = ""
name_appendix = "-daily"
if hourly:
name_appendix = "-hourly"

Expand Down

0 comments on commit 311350b

Please sign in to comment.