mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Modbus set device_class in slaves (#103442)
This commit is contained in:
parent
806205952f
commit
701a93c298
@ -168,6 +168,7 @@ class SlaveSensor(
|
||||
self._attr_unique_id = f"{self._attr_unique_id}_{idx}"
|
||||
self._attr_native_unit_of_measurement = entry.get(CONF_UNIT_OF_MEASUREMENT)
|
||||
self._attr_state_class = entry.get(CONF_STATE_CLASS)
|
||||
self._attr_device_class = entry.get(CONF_DEVICE_CLASS)
|
||||
self._attr_available = False
|
||||
super().__init__(coordinator)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user