Add mixin classes for required keys in EntityDescription (#53610)

This commit is contained in:
Marc Mueller 2021-07-28 11:50:13 +02:00 committed by GitHub
parent 6d13466f8a
commit 553521a76b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 60 additions and 65 deletions

View file

@ -170,9 +170,6 @@ class ClimaCellSensorEntityDescription(SensorEntityDescription):
"`unit_imperial` and `unit_metric` both need to be None or both need "
"to be defined."
)
if self.name is None: # pragma: no cover
raise TypeError
self.name_ = self.name
CC_SENSOR_TYPES = (