mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Rename zamg to GeoSphere Austria (#105494)
This commit is contained in:
parent
2515e520c1
commit
72fe30439e
@ -14,13 +14,11 @@ LOGGER = logging.getLogger(__package__)
|
|||||||
|
|
||||||
ATTR_STATION = "station"
|
ATTR_STATION = "station"
|
||||||
ATTR_UPDATED = "updated"
|
ATTR_UPDATED = "updated"
|
||||||
ATTRIBUTION = "Data provided by ZAMG"
|
ATTRIBUTION = "Data provided by GeoSphere Austria"
|
||||||
|
|
||||||
CONF_STATION_ID = "station_id"
|
CONF_STATION_ID = "station_id"
|
||||||
|
|
||||||
DEFAULT_NAME = "zamg"
|
MANUFACTURER_URL = "https://www.geosphere.at"
|
||||||
|
|
||||||
MANUFACTURER_URL = "https://www.zamg.ac.at"
|
|
||||||
|
|
||||||
MIN_TIME_BETWEEN_UPDATES = timedelta(minutes=10)
|
MIN_TIME_BETWEEN_UPDATES = timedelta(minutes=10)
|
||||||
VIENNA_TIME_ZONE = dt_util.get_time_zone("Europe/Vienna")
|
VIENNA_TIME_ZONE = dt_util.get_time_zone("Europe/Vienna")
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"domain": "zamg",
|
"domain": "zamg",
|
||||||
"name": "Zentralanstalt f\u00fcr Meteorologie und Geodynamik (ZAMG)",
|
"name": "GeoSphere Austria",
|
||||||
"codeowners": ["@killer0071234"],
|
"codeowners": ["@killer0071234"],
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/zamg",
|
"documentation": "https://www.home-assistant.io/integrations/zamg",
|
||||||
|
@ -202,7 +202,7 @@ class ZamgSensor(CoordinatorEntity, SensorEntity):
|
|||||||
identifiers={(DOMAIN, station_id)},
|
identifiers={(DOMAIN, station_id)},
|
||||||
manufacturer=ATTRIBUTION,
|
manufacturer=ATTRIBUTION,
|
||||||
configuration_url=MANUFACTURER_URL,
|
configuration_url=MANUFACTURER_URL,
|
||||||
name=coordinator.name,
|
name=name,
|
||||||
)
|
)
|
||||||
coordinator.api_fields = API_FIELDS
|
coordinator.api_fields = API_FIELDS
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"flow_title": "{name}",
|
"flow_title": "{name}",
|
||||||
"step": {
|
"step": {
|
||||||
"user": {
|
"user": {
|
||||||
"description": "Set up ZAMG to integrate with Home Assistant.",
|
"description": "Set up GeoSphere Austria to integrate with Home Assistant.",
|
||||||
"data": {
|
"data": {
|
||||||
"station_id": "Station ID (Defaults to nearest station)"
|
"station_id": "Station ID (Defaults to nearest station)"
|
||||||
}
|
}
|
||||||
@ -11,7 +11,7 @@
|
|||||||
},
|
},
|
||||||
"error": {
|
"error": {
|
||||||
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]",
|
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]",
|
||||||
"station_not_found": "Station ID not found at zamg"
|
"station_not_found": "Station ID not found at GeoSphere Austria"
|
||||||
},
|
},
|
||||||
"abort": {
|
"abort": {
|
||||||
"already_configured": "[%key:common::config_flow::abort::already_configured_device%]",
|
"already_configured": "[%key:common::config_flow::abort::already_configured_device%]",
|
||||||
|
@ -43,14 +43,14 @@ class ZamgWeather(CoordinatorEntity, WeatherEntity):
|
|||||||
"""Initialise the platform with a data instance and station name."""
|
"""Initialise the platform with a data instance and station name."""
|
||||||
super().__init__(coordinator)
|
super().__init__(coordinator)
|
||||||
self._attr_unique_id = station_id
|
self._attr_unique_id = station_id
|
||||||
self._attr_name = f"ZAMG {name}"
|
self._attr_name = name
|
||||||
self.station_id = f"{station_id}"
|
self.station_id = f"{station_id}"
|
||||||
self._attr_device_info = DeviceInfo(
|
self._attr_device_info = DeviceInfo(
|
||||||
entry_type=DeviceEntryType.SERVICE,
|
entry_type=DeviceEntryType.SERVICE,
|
||||||
identifiers={(DOMAIN, station_id)},
|
identifiers={(DOMAIN, station_id)},
|
||||||
manufacturer=ATTRIBUTION,
|
manufacturer=ATTRIBUTION,
|
||||||
configuration_url=MANUFACTURER_URL,
|
configuration_url=MANUFACTURER_URL,
|
||||||
name=coordinator.name,
|
name=name,
|
||||||
)
|
)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
@ -6717,7 +6717,7 @@
|
|||||||
"iot_class": "local_polling"
|
"iot_class": "local_polling"
|
||||||
},
|
},
|
||||||
"zamg": {
|
"zamg": {
|
||||||
"name": "Zentralanstalt f\u00fcr Meteorologie und Geodynamik (ZAMG)",
|
"name": "GeoSphere Austria",
|
||||||
"integration_type": "hub",
|
"integration_type": "hub",
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"iot_class": "cloud_polling"
|
"iot_class": "cloud_polling"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user