mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 08:17:08 +00:00
Prevent mpchc from spamming logs (#39663)
This commit is contained in:
parent
ad6e8b2d62
commit
1fb70625a3
@ -82,7 +82,9 @@ class MpcHcDevice(MediaPlayerEntity):
|
|||||||
self._player_variables[var[0]] = var[1].lower()
|
self._player_variables[var[0]] = var[1].lower()
|
||||||
self._available = True
|
self._available = True
|
||||||
except requests.exceptions.RequestException:
|
except requests.exceptions.RequestException:
|
||||||
_LOGGER.error("Could not connect to MPC-HC at: %s", self._url)
|
if self.available:
|
||||||
|
_LOGGER.error("Could not connect to MPC-HC at: %s", self._url)
|
||||||
|
|
||||||
self._player_variables = {}
|
self._player_variables = {}
|
||||||
self._available = False
|
self._available = False
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user