Fix Coronavirus

pull/50925/head
Franck Nijhof 2021-05-21 13:18:45 +02:00
parent 659b79e75a
commit 060843860f
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
1 changed files with 2 additions and 0 deletions

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"