Skip to content

Commit

Permalink
fix AndroidTV logging when disconnected (home-assistant#132919)
Browse files Browse the repository at this point in the history
  • Loading branch information
chemelli74 authored Dec 12, 2024
1 parent 0006672 commit ded7cee
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions homeassistant/components/androidtv/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,16 @@ async def async_connect_androidtv(
)

aftv = await async_androidtv_setup(
config[CONF_HOST],
config[CONF_PORT],
adbkey,
config.get(CONF_ADB_SERVER_IP),
config.get(CONF_ADB_SERVER_PORT, DEFAULT_ADB_SERVER_PORT),
state_detection_rules,
config[CONF_DEVICE_CLASS],
timeout,
signer,
host=config[CONF_HOST],
port=config[CONF_PORT],
adbkey=adbkey,
adb_server_ip=config.get(CONF_ADB_SERVER_IP),
adb_server_port=config.get(CONF_ADB_SERVER_PORT, DEFAULT_ADB_SERVER_PORT),
state_detection_rules=state_detection_rules,
device_class=config[CONF_DEVICE_CLASS],
auth_timeout_s=timeout,
signer=signer,
log_errors=False,
)

if not aftv.available:
Expand Down

0 comments on commit ded7cee

Please sign in to comment.