mirror of
https://github.com/home-assistant/core.git
synced 2025-07-12 07:47:08 +00:00
Standardis asuswrt error message level (#37515)
This commit is contained in:
parent
d79067db7e
commit
e3aa4679a0
@ -54,7 +54,7 @@ class AsusWrtDeviceScanner(DeviceScanner):
|
|||||||
self.last_results = await self.connection.async_get_connected_devices()
|
self.last_results = await self.connection.async_get_connected_devices()
|
||||||
if self._connect_error:
|
if self._connect_error:
|
||||||
self._connect_error = False
|
self._connect_error = False
|
||||||
_LOGGER.error("Reconnected to ASUS router for device update")
|
_LOGGER.info("Reconnected to ASUS router for device update")
|
||||||
|
|
||||||
except OSError as err:
|
except OSError as err:
|
||||||
if not self._connect_error:
|
if not self._connect_error:
|
||||||
|
@ -69,9 +69,7 @@ class AsuswrtSensor(Entity):
|
|||||||
self._speed = await self._api.async_get_current_transfer_rates()
|
self._speed = await self._api.async_get_current_transfer_rates()
|
||||||
if self._connect_error:
|
if self._connect_error:
|
||||||
self._connect_error = False
|
self._connect_error = False
|
||||||
_LOGGER.error(
|
_LOGGER.info("Reconnected to ASUS router for %s update", self.entity_id)
|
||||||
"Reconnected to ASUS router for %s update", self.entity_id
|
|
||||||
)
|
|
||||||
except OSError as err:
|
except OSError as err:
|
||||||
if not self._connect_error:
|
if not self._connect_error:
|
||||||
self._connect_error = True
|
self._connect_error = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user