mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 05:35:11 +02:00
Prevent mpchc from spamming logs (#39663)
This commit is contained in:
@@ -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:
|
||||||
|
if self.available:
|
||||||
_LOGGER.error("Could not connect to MPC-HC at: %s", self._url)
|
_LOGGER.error("Could not connect to MPC-HC at: %s", self._url)
|
||||||
|
|
||||||
self._player_variables = {}
|
self._player_variables = {}
|
||||||
self._available = False
|
self._available = False
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user