mirror of
https://github.com/Andre0512/hon.git
synced 2026-07-03 21:55:30 +02:00
Small changes
fixed power switch Revert "fixed power switch" This reverts commit a1a2b04444a10c9dba9731ea62571ff20b56ede1. new HON switch stable
This commit is contained in:
@@ -9,10 +9,9 @@ from homeassistant.components.number import (
|
||||
)
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import UnitOfTime, UnitOfTemperature
|
||||
from homeassistant.core import callback
|
||||
from homeassistant.core import HomeAssistant as HomeAssistantType, callback
|
||||
from homeassistant.helpers.entity import EntityCategory
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
from homeassistant.helpers.typing import HomeAssistantType
|
||||
from pyhon.appliance import HonAppliance
|
||||
from pyhon.parameter.range import HonParameterRange
|
||||
|
||||
@@ -284,7 +283,7 @@ class HonNumberEntity(HonEntity, NumberEntity):
|
||||
self._attr_native_step = setting.step
|
||||
self._attr_native_value = self.native_value
|
||||
if update:
|
||||
self.async_write_ha_state()
|
||||
self.schedule_update_ha_state()
|
||||
|
||||
@property
|
||||
def available(self) -> bool:
|
||||
@@ -340,4 +339,4 @@ class HonConfigNumberEntity(HonEntity, NumberEntity):
|
||||
self._attr_native_step = setting.step
|
||||
self._attr_native_value = self.native_value
|
||||
if update:
|
||||
self.async_write_ha_state()
|
||||
self.schedule_update_ha_state()
|
||||
|
||||
Reference in New Issue
Block a user