Skip to content

Commit

Permalink
config flow: Use helper to log json, clean up imports
Browse files Browse the repository at this point in the history
  • Loading branch information
make-all committed Jan 8, 2025
1 parent c0e9a87 commit b915db5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion custom_components/tuya_local/cloud.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import json
import logging
from typing import Any

Expand Down
2 changes: 1 addition & 1 deletion custom_components/tuya_local/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ async def async_step_select_type(self, user_input=None):
if model:
_LOGGER.warning(
"Device specficication:\n%s",
json.dumps(model, indent=4),
log_json(model),
)
except Exception as e:
_LOGGER.warning("Unable to fetch data model from cloud: %s", e)
Expand Down

0 comments on commit b915db5

Please sign in to comment.