I’m developing custom integration that creates entity inheriting from NumberEntity, to my surprise it is not editable over the UI:
I’m wondering what i’m doing wrong?
class FoxESSEnergyBatMinSoC(CoordinatorEntity, NumberEntity):
_attr_device_class = DEVICE_CLASS_BATTERY
_attr_unit_of_measurement = "%"
_attr_value = 4
def __init__(self, coordinator, name, deviceID):
super().__init__(coordinator=coordinator)
_LOGGER.debug("Initing Entity - Bat Min SoC")
self._attr_name = name+" - Bat Min SoC"
self._attr_name = name+" - Bat Min SoC"
self._attr_unique_id = deviceID+"-bat_min_SoC"
def set_value(self, value: float) -> None:
"""Update the current value."""
async def async_set_value(self, value):
"""Update the current value."""
self._attr_value = value
self.async_write_ha_state()
Documentation does not cover that topic Is there any other source of knowledge different thathttps://developers.home-assistant.io/docs/core/entity/number/ ?