Add mixin classes for required keys in EntityDescription (#53610)
This commit is contained in:
parent
6d13466f8a
commit
553521a76b
6 changed files with 60 additions and 65 deletions
|
@ -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 = (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue