parent
f2e0ff4f0f
commit
22e90a5755
2 changed files with 0 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue