mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 14:27:07 +00:00
parent
f2e0ff4f0f
commit
22e90a5755
@ -56,7 +56,6 @@ class Number(CoilEntity, NumberEntity):
|
||||
|
||||
self._attr_native_step = 1 / coil.factor
|
||||
self._attr_native_unit_of_measurement = coil.unit
|
||||
self._attr_native_value = None
|
||||
|
||||
def _async_read_coil(self, data: CoilData) -> None:
|
||||
if data.value is None:
|
||||
|
@ -38,7 +38,6 @@ class Switch(CoilEntity, SwitchEntity):
|
||||
def __init__(self, coordinator: Coordinator, coil: Coil) -> None:
|
||||
"""Initialize entity."""
|
||||
super().__init__(coordinator, coil, ENTITY_ID_FORMAT)
|
||||
self._attr_is_on = None
|
||||
|
||||
def _async_read_coil(self, data: CoilData) -> None:
|
||||
self._attr_is_on = data.value == "ON"
|
||||
|
Loading…
x
Reference in New Issue
Block a user