fix AndroidTV logging when disconnected (#132919)

This commit is contained in:
Simone Chemelli 2024-12-12 05:42:00 -05:00 committed by Franck Nijhof
parent c08ffcff9b
commit ede9c3ecd2
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

View File

@ -135,15 +135,16 @@ async def async_connect_androidtv(
) )
aftv = await async_androidtv_setup( aftv = await async_androidtv_setup(
config[CONF_HOST], host=config[CONF_HOST],
config[CONF_PORT], port=config[CONF_PORT],
adbkey, adbkey=adbkey,
config.get(CONF_ADB_SERVER_IP), adb_server_ip=config.get(CONF_ADB_SERVER_IP),
config.get(CONF_ADB_SERVER_PORT, DEFAULT_ADB_SERVER_PORT), adb_server_port=config.get(CONF_ADB_SERVER_PORT, DEFAULT_ADB_SERVER_PORT),
state_detection_rules, state_detection_rules=state_detection_rules,
config[CONF_DEVICE_CLASS], device_class=config[CONF_DEVICE_CLASS],
timeout, auth_timeout_s=timeout,
signer, signer=signer,
log_errors=False,
) )
if not aftv.available: if not aftv.available: