Rudd-O / homeassistant-meteoswiss

:sun_behind_rain_cloud: :switzerland: Meteo Swiss Integration for Home Assistant (forked from websylv)
74 stars 8 forks source link

Feat: allow user to select no real-time weather data #5

Closed Rudd-O closed 1 year ago

Rudd-O commented 1 year ago

The weather station that the integration asks about when configuring, does not necessarily have to be used. In other words, it should be optional. https://github.com/Rudd-O/homeassistant-meteoswiss/issues/4 hints at this.

If the user selects no weather station (which should be a possibility), then the sensor entities that depend on this weather station being configured should simply not be added to Home Assistant.

Stretch goal: if the entities already exist for whatever reason, simply delete them. Not sure how to do this!

Rudd-O commented 1 year ago

Fixed in https://github.com/Rudd-O/homeassistant-meteoswiss/commit/b4685f9803cf2603c10a119635d018a9c2d47a22 .