mirror of
https://github.com/home-assistant/core.git
synced 2026-12-04 12:50:45 -04:00
Group sequential add_entities calls in Skybeacon (#187524)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude
parent
7c524427b9
commit
e69dc7376f
@@ -63,8 +63,7 @@ def setup_platform(
|
||||
_LOGGER.debug("Setting up")
|
||||
|
||||
mon = Monitor(hass, mac, name)
|
||||
add_entities([SkybeaconTemp(name, mon)])
|
||||
add_entities([SkybeaconHumid(name, mon)])
|
||||
add_entities([SkybeaconTemp(name, mon), SkybeaconHumid(name, mon)])
|
||||
|
||||
def monitor_stop(_service_or_event):
|
||||
"""Stop the monitor thread."""
|
||||
|
||||
Reference in New Issue
Block a user