Add url to CO2signal (#57703)

pull/57728/head
Paulus Schoutsen 2021-10-14 14:11:57 -07:00 committed by GitHub
parent f8ea2f9b08
commit 9c7dc5865c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -109,6 +109,7 @@ class CO2Sensor(update_coordinator.CoordinatorEntity[CO2SignalResponse], SensorE
ATTR_NAME: "CO2 signal",
ATTR_MANUFACTURER: "Tmrow.com",
"entry_type": "service",
"configuration_url": "https://www.electricitymap.org/",
}
self._attr_unique_id = (
f"{coordinator.entry_id}_{description.unique_id or description.key}"