mirror of
https://github.com/home-assistant/core.git
synced 2025-06-08 23:27:08 +00:00
Fix typing issues - wallbox.number (#59286)
This commit is contained in:
parent
c6a1fe0a5d
commit
ae1592b27a
@ -23,7 +23,7 @@ class WallboxNumberEntityDescription(NumberEntityDescription):
|
|||||||
min_value: float = 0
|
min_value: float = 0
|
||||||
|
|
||||||
|
|
||||||
NUMBER_TYPES: dict[str, NumberEntityDescription] = {
|
NUMBER_TYPES: dict[str, WallboxNumberEntityDescription] = {
|
||||||
CONF_MAX_CHARGING_CURRENT_KEY: WallboxNumberEntityDescription(
|
CONF_MAX_CHARGING_CURRENT_KEY: WallboxNumberEntityDescription(
|
||||||
key=CONF_MAX_CHARGING_CURRENT_KEY,
|
key=CONF_MAX_CHARGING_CURRENT_KEY,
|
||||||
name="Max. Charging Current",
|
name="Max. Charging Current",
|
||||||
@ -57,6 +57,8 @@ async def async_setup_entry(hass, config, async_add_entities):
|
|||||||
class WallboxNumber(CoordinatorEntity, NumberEntity):
|
class WallboxNumber(CoordinatorEntity, NumberEntity):
|
||||||
"""Representation of the Wallbox portal."""
|
"""Representation of the Wallbox portal."""
|
||||||
|
|
||||||
|
entity_description: WallboxNumberEntityDescription
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self, coordinator, config, description: WallboxNumberEntityDescription
|
self, coordinator, config, description: WallboxNumberEntityDescription
|
||||||
):
|
):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user