mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +00:00
No longer thrown an error when device is offline in linkplay (#130161)
This commit is contained in:
parent
c10f078f2a
commit
97fa568876
@ -9,7 +9,7 @@ from typing import Any, Concatenate
|
||||
from linkplay.bridge import LinkPlayBridge
|
||||
from linkplay.consts import EqualizerMode, LoopMode, PlayingMode, PlayingStatus
|
||||
from linkplay.controller import LinkPlayController, LinkPlayMultiroom
|
||||
from linkplay.exceptions import LinkPlayException, LinkPlayRequestException
|
||||
from linkplay.exceptions import LinkPlayRequestException
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components import media_source
|
||||
@ -201,9 +201,8 @@ class LinkPlayMediaPlayerEntity(MediaPlayerEntity):
|
||||
try:
|
||||
await self._bridge.player.update_status()
|
||||
self._update_properties()
|
||||
except LinkPlayException:
|
||||
except LinkPlayRequestException:
|
||||
self._attr_available = False
|
||||
raise
|
||||
|
||||
@exception_wrap
|
||||
async def async_select_source(self, source: str) -> None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user