Skip to content

Commit

Permalink
fix: log eufy device info when device not found on tuya
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeFoodPixels committed Mar 22, 2024
1 parent 7e60ecd commit f397319
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions custom_components/robovac/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

"""Config flow for Eufy Robovac integration."""
from __future__ import annotations
import json

import logging
from typing import Any, Optional
Expand Down Expand Up @@ -138,7 +139,6 @@ def get_eufy_vacuums(self):
if item["device"]["product"]["appliance"] == "Cleaning":
try:
device = tuya_client.get_device(item["device"]["id"])
_LOGGER.debug("Robovac schema: {}".format(device["schema"]))

vac_details = {
CONF_ID: item["device"]["id"],
Expand All @@ -153,10 +153,11 @@ def get_eufy_vacuums(self):
self[CONF_VACS][item["device"]["id"]] = vac_details
except:
_LOGGER.debug(
"Vacuum {} found on Eufy, but not on Tuya. Skipping.".format(
"Skipping vacuum {}: found on Eufy but not on Tuya. Eufy details:".format(
item["device"]["id"]
)
)
_LOGGER.debug(json.dumps(item["device"], indent=2))

return response

Expand Down

0 comments on commit f397319

Please sign in to comment.