Remove default state from Nibe (#99611)

Remove start state
This commit is contained in:
Joost Lekkerkerker 2023-09-04 17:53:33 +02:00 committed by GitHub
parent f2e0ff4f0f
commit 22e90a5755
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 2 deletions

View file

@ -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:

View file

@ -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"