Skip to content

Commit

Permalink
Revert "Update stookwijzer api to atlas leefomgeving (#103323)" (#104705
Browse files Browse the repository at this point in the history
)
  • Loading branch information
frenck committed Nov 29, 2023
1 parent e884933 commit 8f2e69f
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 17 deletions.
6 changes: 3 additions & 3 deletions homeassistant/components/stookwijzer/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
class StookwijzerState(StrEnum):
"""Stookwijzer states for sensor entity."""

CODE_YELLOW = "code_yellow"
CODE_ORANGE = "code_orange"
CODE_RED = "code_red"
BLUE = "blauw"
ORANGE = "oranje"
RED = "rood"
9 changes: 4 additions & 5 deletions homeassistant/components/stookwijzer/diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ async def async_get_config_entry_diagnostics(
return {
"state": client.state,
"last_updated": last_updated,
"alert": client.alert,
"air_quality_index": client.lki,
"windspeed_bft": client.windspeed_bft,
"windspeed_ms": client.windspeed_ms,
"forecast": client.forecast,
"lqi": client.lqi,
"windspeed": client.windspeed,
"weather": client.weather,
"concentrations": client.concentrations,
}
2 changes: 1 addition & 1 deletion homeassistant/components/stookwijzer/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"documentation": "https://www.home-assistant.io/integrations/stookwijzer",
"integration_type": "service",
"iot_class": "cloud_polling",
"requirements": ["stookwijzer==1.4.2"]
"requirements": ["stookwijzer==1.3.0"]
}
6 changes: 3 additions & 3 deletions homeassistant/components/stookwijzer/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async def async_setup_entry(
class StookwijzerSensor(SensorEntity):
"""Defines a Stookwijzer binary sensor."""

_attr_attribution = "Data provided by atlasleefomgeving.nl"
_attr_attribution = "Data provided by stookwijzer.nu"
_attr_device_class = SensorDeviceClass.ENUM
_attr_has_entity_name = True
_attr_name = None
Expand All @@ -43,9 +43,9 @@ def __init__(self, client: Stookwijzer, entry: ConfigEntry) -> None:
self._attr_device_info = DeviceInfo(
identifiers={(DOMAIN, f"{entry.entry_id}")},
name="Stookwijzer",
manufacturer="Atlas Leefomgeving",
manufacturer="stookwijzer.nu",
entry_type=DeviceEntryType.SERVICE,
configuration_url="https://www.atlasleefomgeving.nl/stookwijzer",
configuration_url="https://www.stookwijzer.nu",
)

def update(self) -> None:
Expand Down
6 changes: 3 additions & 3 deletions homeassistant/components/stookwijzer/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"sensor": {
"stookwijzer": {
"state": {
"code_yellow": "Code yellow",
"code_orange": "Code orange",
"code_red": "Code red"
"blauw": "Blue",
"oranje": "Orange",
"rood": "Red"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2522,7 +2522,7 @@ steamodd==4.21
stookalert==0.1.4

# homeassistant.components.stookwijzer
stookwijzer==1.4.2
stookwijzer==1.3.0

# homeassistant.components.streamlabswater
streamlabswater==1.0.1
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1886,7 +1886,7 @@ steamodd==4.21
stookalert==0.1.4

# homeassistant.components.stookwijzer
stookwijzer==1.4.2
stookwijzer==1.3.0

# homeassistant.components.huawei_lte
# homeassistant.components.solaredge
Expand Down

0 comments on commit 8f2e69f

Please sign in to comment.