Hi,
I am getting the following errors from an Intergration since one of the recent updates:
Logger: homeassistant.components.number
Source: components/number/__init__.py:462
Integration: Nummer (documentation, issues)
First occurred: 14. Juli 2022 um 16:10:04 (10 occurrences)
Last logged: 08:54:14
Entity number.openWB-Mindestladestrom (Modus Min+PV-Laden) (<class 'custom_components.openwbmqtt.number.openWBNumber'>) is using deprecated NumberEntity features which will be unsupported from Home Assistant Core 2022.10, please report it to the custom component author.
Entity number.openWB-CP1-Ladestromvorgabe (Modus Sofortladen) (<class 'custom_components.openwbmqtt.number.openWBNumber'>) is using deprecated NumberEntity features which will be unsupported from Home Assistant Core 2022.10, please report it to the custom component author.
Entity number.openWB-CP1-Energiebegrenzung (Modus Sofortladen) (<class 'custom_components.openwbmqtt.number.openWBNumber'>) is using deprecated NumberEntity features which will be unsupported from Home Assistant Core 2022.10, please report it to the custom component author.
Entity number.openWB-CP1-SoC-Begrenzung (Modus Sofortladen) (<class 'custom_components.openwbmqtt.number.openWBNumber'>) is using deprecated NumberEntity features which will be unsupported from Home Assistant Core 2022.10, please report it to the custom component author.
Entity number.openWB-CP1-Aktueller SoC (Manuelles SoC Modul) (<class 'custom_components.openwbmqtt.number.openWBNumber'>) is using deprecated NumberEntity features which will be unsupported from Home Assistant Core 2022.10, please report it to the custom component author.
My main issue is, that I am trying to fix this integration on my own - since the developer reported, he does not have the time to continue developing at the moment.
Now I am trying to figure out, which “features” were depricated - and need some further feedback on this…
My major issue atm is that I don’t find a clear description where / what I need to change / remove…
this is one of my “number entities” for example:
NUMBERS_GLOBAL = [
openWBNumberEntityDescription(
key="minCurrentMinPv",
name="Mindestladestrom (Modus Min+PV-Laden)",
unit_of_measurement=ELECTRIC_CURRENT_AMPERE,
device_class="Power",
min_value=6.0,
max_value=16.0,
step=1.0,
entity_category=EntityCategory.CONFIG,
# icon=
mqttTopicCommand="minCurrentMinPv",
mqttTopicCurrentValue="minCurrentMinPv",
mqttTopicChargeMode="pv",
icon="mdi:current-ac",
),
]
while the code behind it is this:
def __init__(
self,
unique_id: str,
device_friendly_name: str,
mqtt_root: str,
description: openWBNumberEntityDescription,
state: float | None = None,
currentChargePoint: int | None = None,
nChargePoints: int | None = None,
min_value: float | None = None,
max_value: float | None = None,
step: float | None = None,
mode: NumberMode = NumberMode.AUTO,
) -> None:
"""Initialize the sensor and the openWB device."""
super().__init__(
device_friendly_name=device_friendly_name,
mqtt_root=mqtt_root,
)
...
if min_value is not None:
self._attr_min_value = min_value
if max_value is not None:
self._attr_max_value = max_value
if step is not None:
self._attr_step = step
I am trying to follow this documentation:
But can someone please let me know, what features exactly were removed?
Or what exactly has changed?
That would help me a lot in trying to fix this.
And sorry - I don’t have much development experience - and even less in case of HomeAssistant or this integration