Prevent mpchc from spamming logs (#39663)
This commit is contained in:
parent
ad6e8b2d62
commit
1fb70625a3
1 changed files with 3 additions and 1 deletions
|
@ -82,7 +82,9 @@ class MpcHcDevice(MediaPlayerEntity):
|
|||
self._player_variables[var[0]] = var[1].lower()
|
||||
self._available = True
|
||||
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._available = False
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue