mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 12:15:08 +02:00
Log exception that caused disconnect
This commit is contained in:
@@ -8,6 +8,6 @@
|
|||||||
"iot_class": "local_push",
|
"iot_class": "local_push",
|
||||||
"loggers": ["androidtvremote2"],
|
"loggers": ["androidtvremote2"],
|
||||||
"quality_scale": "platinum",
|
"quality_scale": "platinum",
|
||||||
"requirements": ["androidtvremote2==0.0.5"],
|
"requirements": ["androidtvremote2==0.0.6"],
|
||||||
"zeroconf": ["_androidtvremote2._tcp.local."]
|
"zeroconf": ["_androidtvremote2._tcp.local."]
|
||||||
}
|
}
|
||||||
|
@@ -80,7 +80,7 @@ class AndroidTVRemoteEntity(RemoteEntity):
|
|||||||
self.async_write_ha_state()
|
self.async_write_ha_state()
|
||||||
|
|
||||||
@callback
|
@callback
|
||||||
def is_available_updated(is_available: bool) -> None:
|
def is_available_updated(is_available: bool, exc: Exception | None) -> None:
|
||||||
if is_available:
|
if is_available:
|
||||||
_LOGGER.info(
|
_LOGGER.info(
|
||||||
"Reconnected to %s at %s",
|
"Reconnected to %s at %s",
|
||||||
@@ -89,9 +89,10 @@ class AndroidTVRemoteEntity(RemoteEntity):
|
|||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
_LOGGER.warning(
|
_LOGGER.warning(
|
||||||
"Disconnected from %s at %s",
|
"Disconnected from %s at %s due to error: %s",
|
||||||
self._name,
|
self._name,
|
||||||
self._host,
|
self._host,
|
||||||
|
exc,
|
||||||
)
|
)
|
||||||
self._attr_available = is_available
|
self._attr_available = is_available
|
||||||
self.async_write_ha_state()
|
self.async_write_ha_state()
|
||||||
|
@@ -333,7 +333,7 @@ amcrest==1.9.7
|
|||||||
androidtv[async]==0.0.70
|
androidtv[async]==0.0.70
|
||||||
|
|
||||||
# homeassistant.components.androidtv_remote
|
# homeassistant.components.androidtv_remote
|
||||||
androidtvremote2==0.0.5
|
androidtvremote2==0.0.6
|
||||||
|
|
||||||
# homeassistant.components.anel_pwrctrl
|
# homeassistant.components.anel_pwrctrl
|
||||||
anel_pwrctrl-homeassistant==0.0.1.dev2
|
anel_pwrctrl-homeassistant==0.0.1.dev2
|
||||||
|
@@ -308,7 +308,7 @@ ambiclimate==0.2.1
|
|||||||
androidtv[async]==0.0.70
|
androidtv[async]==0.0.70
|
||||||
|
|
||||||
# homeassistant.components.androidtv_remote
|
# homeassistant.components.androidtv_remote
|
||||||
androidtvremote2==0.0.5
|
androidtvremote2==0.0.6
|
||||||
|
|
||||||
# homeassistant.components.anthemav
|
# homeassistant.components.anthemav
|
||||||
anthemav==1.4.1
|
anthemav==1.4.1
|
||||||
|
Reference in New Issue
Block a user