Skip to content

Commit

Permalink
Reduce some excessive logs
Browse files Browse the repository at this point in the history
  • Loading branch information
magico13 committed Feb 2, 2025
1 parent 3340189 commit cd46ea8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 deletions custom_components/emporia_vue/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
DEVICE_INFORMATION = {}

entry_data = entry.data
_LOGGER.warning("Setting up Emporia Vue with entry data: %s", entry_data)
_LOGGER.debug("Setting up Emporia Vue with entry data: %s", entry_data)
email: str = entry_data[CONF_EMAIL]
password: str = entry_data[CONF_PASSWORD]
vue = PyEmVue()
Expand Down Expand Up @@ -199,7 +199,7 @@ async def async_update_day_sensors() -> dict:
update_interval=timedelta(minutes=1),
)
await coordinator_1min.async_config_entry_first_refresh()
_LOGGER.info("1min Update data: %s", coordinator_1min.data)
_LOGGER.debug("1min Update data: %s", coordinator_1min.data)
coordinator_1mon = None
if ENABLE_1MON not in entry_data or entry_data[ENABLE_1MON]:
coordinator_1mon = DataUpdateCoordinator(
Expand All @@ -212,7 +212,7 @@ async def async_update_day_sensors() -> dict:
update_interval=timedelta(hours=1),
)
await coordinator_1mon.async_config_entry_first_refresh()
_LOGGER.info("1mon Update data: %s", coordinator_1mon.data)
_LOGGER.debug("1mon Update data: %s", coordinator_1mon.data)

coordinator_day_sensor = None
if ENABLE_1D not in entry_data or entry_data[ENABLE_1D]:
Expand Down
6 changes: 2 additions & 4 deletions custom_components/emporia_vue/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,8 @@ async def async_step_reconfigure(
"""Handle the reconfiguration step."""
current_config = self._get_reconfigure_entry()
if user_input is not None:
_LOGGER.warning(
"User input on reconfigure was the following: %s", user_input
)
_LOGGER.warning("Current config is: %s", current_config.data)
_LOGGER.debug("User input on reconfigure was the following: %s", user_input)
_LOGGER.debug("Current config is: %s", current_config.data)
info = current_config.data
# if gid is not in current config, reauth and get gid again
if (
Expand Down

0 comments on commit cd46ea8

Please sign in to comment.