mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 15:47:12 +00:00
* Fix #9839 * Update requirements * Default state: STATE_UNKNOWN -> None * Default the state to None in the constructor as well
This commit is contained in:
parent
2547a235c1
commit
ff6f5cc116
@ -18,10 +18,10 @@ from homeassistant.components.media_player import (
|
|||||||
MEDIA_TYPE_CHANNEL, MediaPlayerDevice, PLATFORM_SCHEMA)
|
MEDIA_TYPE_CHANNEL, MediaPlayerDevice, PLATFORM_SCHEMA)
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
CONF_HOST, CONF_PORT, STATE_ON, STATE_OFF, STATE_PLAYING,
|
CONF_HOST, CONF_PORT, STATE_ON, STATE_OFF, STATE_PLAYING,
|
||||||
STATE_PAUSED, STATE_UNKNOWN, CONF_NAME)
|
STATE_PAUSED, CONF_NAME)
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
||||||
REQUIREMENTS = ['liveboxplaytv==1.4.9']
|
REQUIREMENTS = ['liveboxplaytv==1.5.0']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -72,7 +72,7 @@ class LiveboxPlayTvDevice(MediaPlayerDevice):
|
|||||||
self._muted = False
|
self._muted = False
|
||||||
self._name = name
|
self._name = name
|
||||||
self._current_source = None
|
self._current_source = None
|
||||||
self._state = STATE_UNKNOWN
|
self._state = None
|
||||||
self._channel_list = {}
|
self._channel_list = {}
|
||||||
self._current_channel = None
|
self._current_channel = None
|
||||||
self._current_program = None
|
self._current_program = None
|
||||||
@ -92,7 +92,7 @@ class LiveboxPlayTvDevice(MediaPlayerDevice):
|
|||||||
self._client.get_current_channel_image(img_size=300)
|
self._client.get_current_channel_image(img_size=300)
|
||||||
self.refresh_channel_list()
|
self.refresh_channel_list()
|
||||||
except requests.ConnectionError:
|
except requests.ConnectionError:
|
||||||
self._state = STATE_OFF
|
self._state = None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self):
|
def name(self):
|
||||||
|
@ -398,7 +398,7 @@ lightify==1.0.6
|
|||||||
limitlessled==1.0.8
|
limitlessled==1.0.8
|
||||||
|
|
||||||
# homeassistant.components.media_player.liveboxplaytv
|
# homeassistant.components.media_player.liveboxplaytv
|
||||||
liveboxplaytv==1.4.9
|
liveboxplaytv==1.5.0
|
||||||
|
|
||||||
# homeassistant.components.lametric
|
# homeassistant.components.lametric
|
||||||
# homeassistant.components.notify.lametric
|
# homeassistant.components.notify.lametric
|
||||||
|
Loading…
x
Reference in New Issue
Block a user