mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
parent
4d2432cffb
commit
a1aca20818
@ -2314,10 +2314,7 @@ class SensorStateTrait(_Trait):
|
||||
@classmethod
|
||||
def supported(cls, domain, features, device_class, _):
|
||||
"""Test if state is supported."""
|
||||
return (
|
||||
domain == sensor.DOMAIN
|
||||
and device_class in SensorStateTrait.sensor_types.keys()
|
||||
)
|
||||
return domain == sensor.DOMAIN and device_class in cls.sensor_types
|
||||
|
||||
def sync_attributes(self):
|
||||
"""Return attributes for a sync request."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user