Simplify imports in mysensors (#125746)

This commit is contained in:
epenet 2024-09-11 15:21:51 +02:00 committed by GitHub
parent c33ba541b0
commit 09dd647741
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 22 additions and 18 deletions

View file

@ -18,7 +18,7 @@ from homeassistant.helpers.dispatcher import async_dispatcher_connect
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.util.color import rgb_hex_to_rgb_list
from .. import mysensors
from . import setup_mysensors_platform
from .const import MYSENSORS_DISCOVERY, DiscoveryInfo, SensorType
from .device import MySensorsChildEntity
from .helpers import on_unload
@ -38,7 +38,7 @@ async def async_setup_entry(
async def async_discover(discovery_info: DiscoveryInfo) -> None:
"""Discover and add a MySensors light."""
mysensors.setup_mysensors_platform(
setup_mysensors_platform(
hass,
Platform.LIGHT,
discovery_info,
@ -57,7 +57,7 @@ async def async_setup_entry(
)
class MySensorsLight(mysensors.device.MySensorsChildEntity, LightEntity):
class MySensorsLight(MySensorsChildEntity, LightEntity):
"""Representation of a MySensors Light child node."""
def __init__(self, *args: Any) -> None: