mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
binary_sensor sensor_class to entity device_class (#5860)
* binary_sensor sensor_class to entity device_class * Linter fixes * Should be it
This commit is contained in:
committed by
Paulus Schoutsen
parent
67957cbfa8
commit
e877d572f5
@@ -64,8 +64,8 @@ class BloomSkySensor(BinarySensorDevice):
|
||||
return self._unique_id
|
||||
|
||||
@property
|
||||
def sensor_class(self):
|
||||
"""Return the class of this sensor, from SENSOR_CLASSES."""
|
||||
def device_class(self):
|
||||
"""Return the class of this sensor, from DEVICE_CLASSES."""
|
||||
return SENSOR_TYPES.get(self._sensor_name)
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user