Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Update stookwijzer api to atlas leefomgeving (#103323)" #104705

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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