Fixes an issue in Xiaomi TV platform that would some TVs not sleep correctly (#14829)
This commit is contained in:
parent
cb6c869c2f
commit
21d05a8b4d
2 changed files with 3 additions and 3 deletions
|
@ -13,7 +13,7 @@ from homeassistant.components.media_player import (
|
||||||
SUPPORT_TURN_ON, SUPPORT_TURN_OFF, MediaPlayerDevice, PLATFORM_SCHEMA,
|
SUPPORT_TURN_ON, SUPPORT_TURN_OFF, MediaPlayerDevice, PLATFORM_SCHEMA,
|
||||||
SUPPORT_VOLUME_STEP)
|
SUPPORT_VOLUME_STEP)
|
||||||
|
|
||||||
REQUIREMENTS = ['pymitv==1.0.0']
|
REQUIREMENTS = ['pymitv==1.4.0']
|
||||||
|
|
||||||
DEFAULT_NAME = "Xiaomi TV"
|
DEFAULT_NAME = "Xiaomi TV"
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
|
|
||||||
if host is not None:
|
if host is not None:
|
||||||
# Check if there's a valid TV at the IP address.
|
# Check if there's a valid TV at the IP address.
|
||||||
if not Discover().checkIp(host):
|
if not Discover().check_ip(host):
|
||||||
_LOGGER.error(
|
_LOGGER.error(
|
||||||
"Could not find Xiaomi TV with specified IP: %s", host
|
"Could not find Xiaomi TV with specified IP: %s", host
|
||||||
)
|
)
|
||||||
|
|
|
@ -884,7 +884,7 @@ pymailgunner==1.4
|
||||||
pymediaroom==0.6.3
|
pymediaroom==0.6.3
|
||||||
|
|
||||||
# homeassistant.components.media_player.xiaomi_tv
|
# homeassistant.components.media_player.xiaomi_tv
|
||||||
pymitv==1.0.0
|
pymitv==1.4.0
|
||||||
|
|
||||||
# homeassistant.components.mochad
|
# homeassistant.components.mochad
|
||||||
pymochad==0.2.0
|
pymochad==0.2.0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue