Update stookwijzer api to atlas leefomgeving (#103323)

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
This commit is contained in:
fwestenberg 2023-11-28 13:23:51 +01:00 committed by GitHub
parent b8cc3349be
commit 9dc5d4a1bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 17 additions and 16 deletions

View File

@ -10,6 +10,6 @@ LOGGER = logging.getLogger(__package__)
class StookwijzerState(StrEnum):
"""Stookwijzer states for sensor entity."""
BLUE = "blauw"
ORANGE = "oranje"
RED = "rood"
CODE_YELLOW = "code_yellow"
CODE_ORANGE = "code_orange"
CODE_RED = "code_red"

View File

@ -24,8 +24,9 @@ async def async_get_config_entry_diagnostics(
return {
"state": client.state,
"last_updated": last_updated,
"lqi": client.lqi,
"windspeed": client.windspeed,
"weather": client.weather,
"concentrations": client.concentrations,
"alert": client.alert,
"air_quality_index": client.lki,
"windspeed_bft": client.windspeed_bft,
"windspeed_ms": client.windspeed_ms,
"forecast": client.forecast,
}

View File

@ -6,5 +6,5 @@
"documentation": "https://www.home-assistant.io/integrations/stookwijzer",
"integration_type": "service",
"iot_class": "cloud_polling",
"requirements": ["stookwijzer==1.3.0"]
"requirements": ["stookwijzer==1.4.2"]
}

View File

@ -29,7 +29,7 @@ async def async_setup_entry(
class StookwijzerSensor(SensorEntity):
"""Defines a Stookwijzer binary sensor."""
_attr_attribution = "Data provided by stookwijzer.nu"
_attr_attribution = "Data provided by atlasleefomgeving.nl"
_attr_device_class = SensorDeviceClass.ENUM
_attr_has_entity_name = True
_attr_name = None
@ -43,9 +43,9 @@ class StookwijzerSensor(SensorEntity):
self._attr_device_info = DeviceInfo(
identifiers={(DOMAIN, f"{entry.entry_id}")},
name="Stookwijzer",
manufacturer="stookwijzer.nu",
manufacturer="Atlas Leefomgeving",
entry_type=DeviceEntryType.SERVICE,
configuration_url="https://www.stookwijzer.nu",
configuration_url="https://www.atlasleefomgeving.nl/stookwijzer",
)
def update(self) -> None:

View File

@ -13,9 +13,9 @@
"sensor": {
"stookwijzer": {
"state": {
"blauw": "Blue",
"oranje": "Orange",
"rood": "Red"
"code_yellow": "Code yellow",
"code_orange": "Code orange",
"code_red": "Code red"
}
}
}

View File

@ -2522,7 +2522,7 @@ steamodd==4.21
stookalert==0.1.4
# homeassistant.components.stookwijzer
stookwijzer==1.3.0
stookwijzer==1.4.2
# homeassistant.components.streamlabswater
streamlabswater==1.0.1

View File

@ -1886,7 +1886,7 @@ steamodd==4.21
stookalert==0.1.4
# homeassistant.components.stookwijzer
stookwijzer==1.3.0
stookwijzer==1.4.2
# homeassistant.components.huawei_lte
# homeassistant.components.solaredge