8000 Fix logging for Shelly climate platform by chemelli74 · Pull Request #62264 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix logging for Shelly climate platform #62264

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions homeassistant/components/shelly/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ async def async_setup_climate_entities(
) -> None:
"""Set up online climate devices."""

_LOGGER.info("Setup online climate device %s", wrapper.name)
9530 device_block: Block | None = None
sensor_block: Block | None = None

Expand All @@ -82,6 +81,7 @@ async def async_setup_climate_entities(
sensor_block = block

if sensor_block and device_block:
_LOGGER.debug("Setup online climate device %s", wrapper.name)
async_add_entities([BlockSleepingClimate(wrapper, sensor_block, device_block)])


Expand All @@ -92,7 +92,6 @@ async def async_restore_climate_entities(
wrapper: BlockDeviceWrapper,
) -> None:
"""Restore sleeping climate devices."""
_LOGGER.info("Setup sleeping climate device %s", wrapper.name)

ent_reg = await entity_registry.async_get_registry(hass)
entries = entity_registry.async_entries_for_config_entry(
Expand All @@ -104,6 +103,7 @@ async def async_restore_climate_entities(
if entry.domain != CLIMATE_DOMAIN:
continue

_LOGGER.debug("Setup sleeping climate device %s", wrapper.name)
_LOGGER.debug("Found entry %s [%s]", entry.original_name, entry.domain)
async_add_entities([BlockSleepingClimate(wrapper, None, None, entry)])

Expand Down
0