Remove redundant var from Shelly (#176780)

This commit is contained in:
Simone Chemelli
2026-07-18 21:45:15 +03:00
committed by GitHub
parent 348b50a16a
commit b9effc67bd
2 changed files with 4 additions and 7 deletions
@@ -2,13 +2,12 @@
import asyncio
from dataclasses import dataclass, field
import logging
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers.device_registry import format_mac
from homeassistant.util.hass_dict import HassKey
_LOGGER = logging.getLogger(__name__)
from .const import LOGGER
@dataclass
@@ -62,7 +61,7 @@ def async_register_zeroconf_discovery(
state = registry.get(normalized_mac)
if not state:
_LOGGER.debug(
LOGGER.debug(
"No BLE provisioning state found for %s (host %s, port %s)",
normalized_mac,
host,
@@ -70,7 +69,7 @@ def async_register_zeroconf_discovery(
)
return
_LOGGER.debug(
LOGGER.debug(
"Registering zeroconf discovery for %s at %s:%s (replacing previous)",
normalized_mac,
host,
+1 -3
View File
@@ -2,7 +2,6 @@
from collections.abc import Callable
from dataclasses import dataclass
import logging
from typing import Any, Final, cast, override
from aioshelly.const import RPC_GENERATIONS
@@ -25,6 +24,7 @@ from homeassistant.helpers.restore_state import RestoreEntity
from .const import (
CONF_SLEEP_PERIOD,
DOMAIN,
LOGGER,
OTA_BEGIN,
OTA_ERROR,
OTA_PROGRESS,
@@ -42,8 +42,6 @@ from .entity import (
)
from .utils import get_device_entry_gen, get_release_url
LOGGER = logging.getLogger(__name__)
PARALLEL_UPDATES = 0