Fix typing issues - wallbox.number (#59286)

This commit is contained in:
Marc Mueller 2021-11-07 15:57:34 +01:00 committed by GitHub
parent c6a1fe0a5d
commit ae1592b27a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,7 @@ class WallboxNumberEntityDescription(NumberEntityDescription):
min_value: float = 0
NUMBER_TYPES: dict[str, NumberEntityDescription] = {
NUMBER_TYPES: dict[str, WallboxNumberEntityDescription] = {
CONF_MAX_CHARGING_CURRENT_KEY: WallboxNumberEntityDescription(
key=CONF_MAX_CHARGING_CURRENT_KEY,
name="Max. Charging Current",
@ -57,6 +57,8 @@ async def async_setup_entry(hass, config, async_add_entities):
class WallboxNumber(CoordinatorEntity, NumberEntity):
"""Representation of the Wallbox portal."""
entity_description: WallboxNumberEntityDescription
def __init__(
self, coordinator, config, description: WallboxNumberEntityDescription
):