Rename CO2Signal to Electricity Maps ()

* Changes names and links

* Changes link to documentation

* Updates generated integration name
pull/96475/head^2
Mads Nedergaard 2023-07-13 17:57:31 +02:00 committed by GitHub
parent 7859be6481
commit 025ed3868d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 8 deletions
homeassistant

View File

@ -3,4 +3,4 @@
DOMAIN = "co2signal"
CONF_COUNTRY_CODE = "country_code"
ATTRIBUTION = "Data provided by CO2signal"
ATTRIBUTION = "Data provided by Electricity Maps"

View File

@ -1,9 +1,9 @@
{
"domain": "co2signal",
"name": "CO2 Signal",
"name": "Electricity Maps",
"codeowners": [],
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/co2signal",
"documentation": "https://www.home-assistant.io/integrations/electricity_maps",
"iot_class": "cloud_polling",
"loggers": ["CO2Signal"],
"requirements": ["CO2Signal==0.4.2"]

View File

@ -75,11 +75,11 @@ class CO2Sensor(CoordinatorEntity[CO2SignalCoordinator], SensorEntity):
"country_code": coordinator.data["countryCode"],
}
self._attr_device_info = DeviceInfo(
configuration_url="https://www.electricitymap.org/",
configuration_url="https://www.electricitymaps.com/",
entry_type=DeviceEntryType.SERVICE,
identifiers={(DOMAIN, coordinator.entry_id)},
manufacturer="Tmrow.com",
name="CO2 signal",
manufacturer="Electricity Maps",
name="Electricity Maps",
)
self._attr_unique_id = (
f"{coordinator.entry_id}_{description.unique_id or description.key}"

View File

@ -6,7 +6,7 @@
"location": "Get data for",
"api_key": "[%key:common::config_flow::data::access_token%]"
},
"description": "Visit https://co2signal.com/ to request a token."
"description": "Visit https://electricitymaps.com/free-tier to request a token."
},
"coordinates": {
"data": {

View File

@ -846,7 +846,7 @@
"iot_class": "local_polling"
},
"co2signal": {
"name": "CO2 Signal",
"name": "Electricity Maps",
"integration_type": "hub",
"config_flow": true,
"iot_class": "cloud_polling"