Fix Coronavirus

This commit is contained in:
Franck Nijhof
2021-05-21 13:18:45 +02:00
parent 659b79e75a
commit 060843860f

View File

@@ -38,6 +38,8 @@ class CoronavirusSensor(CoordinatorEntity, SensorEntity):
else:
self.name = f"{coordinator.data[country].country} Coronavirus {info_type}"
self.unique_id = f"{country}-{info_type}"
self.country = country
self.info_type = info_type
self._icon = SENSORS[self.info_type]
self._unit_of_measurement = "people"