Rename zamg to GeoSphere Austria (#105494)
This commit is contained in:
parent
2515e520c1
commit
72fe30439e
6 changed files with 9 additions and 11 deletions
|
@ -14,13 +14,11 @@ LOGGER = logging.getLogger(__package__)
|
|||
|
||||
ATTR_STATION = "station"
|
||||
ATTR_UPDATED = "updated"
|
||||
ATTRIBUTION = "Data provided by ZAMG"
|
||||
ATTRIBUTION = "Data provided by GeoSphere Austria"
|
||||
|
||||
CONF_STATION_ID = "station_id"
|
||||
|
||||
DEFAULT_NAME = "zamg"
|
||||
|
||||
MANUFACTURER_URL = "https://www.zamg.ac.at"
|
||||
MANUFACTURER_URL = "https://www.geosphere.at"
|
||||
|
||||
MIN_TIME_BETWEEN_UPDATES = timedelta(minutes=10)
|
||||
VIENNA_TIME_ZONE = dt_util.get_time_zone("Europe/Vienna")
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"domain": "zamg",
|
||||
"name": "Zentralanstalt f\u00fcr Meteorologie und Geodynamik (ZAMG)",
|
||||
"name": "GeoSphere Austria",
|
||||
"codeowners": ["@killer0071234"],
|
||||
"config_flow": true,
|
||||
"documentation": "https://www.home-assistant.io/integrations/zamg",
|
||||
|
|
|
@ -202,7 +202,7 @@ class ZamgSensor(CoordinatorEntity, SensorEntity):
|
|||
identifiers={(DOMAIN, station_id)},
|
||||
manufacturer=ATTRIBUTION,
|
||||
configuration_url=MANUFACTURER_URL,
|
||||
name=coordinator.name,
|
||||
name=name,
|
||||
)
|
||||
coordinator.api_fields = API_FIELDS
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"flow_title": "{name}",
|
||||
"step": {
|
||||
"user": {
|
||||
"description": "Set up ZAMG to integrate with Home Assistant.",
|
||||
"description": "Set up GeoSphere Austria to integrate with Home Assistant.",
|
||||
"data": {
|
||||
"station_id": "Station ID (Defaults to nearest station)"
|
||||
}
|
||||
|
@ -11,7 +11,7 @@
|
|||
},
|
||||
"error": {
|
||||
"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": {
|
||||
"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."""
|
||||
super().__init__(coordinator)
|
||||
self._attr_unique_id = station_id
|
||||
self._attr_name = f"ZAMG {name}"
|
||||
self._attr_name = name
|
||||
self.station_id = f"{station_id}"
|
||||
self._attr_device_info = DeviceInfo(
|
||||
entry_type=DeviceEntryType.SERVICE,
|
||||
identifiers={(DOMAIN, station_id)},
|
||||
manufacturer=ATTRIBUTION,
|
||||
configuration_url=MANUFACTURER_URL,
|
||||
name=coordinator.name,
|
||||
name=name,
|
||||
)
|
||||
|
||||
@property
|
||||
|
|
|
@ -6717,7 +6717,7 @@
|
|||
"iot_class": "local_polling"
|
||||
},
|
||||
"zamg": {
|
||||
"name": "Zentralanstalt f\u00fcr Meteorologie und Geodynamik (ZAMG)",
|
||||
"name": "GeoSphere Austria",
|
||||
"integration_type": "hub",
|
||||
"config_flow": true,
|
||||
"iot_class": "cloud_polling"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue