diff --git a/homeassistant/components/media_player/xiaomi_tv.py b/homeassistant/components/media_player/xiaomi_tv.py index be40bf7d01075..d44ac138e4171 100644 --- a/homeassistant/components/media_player/xiaomi_tv.py +++ b/homeassistant/components/media_player/xiaomi_tv.py @@ -13,7 +13,7 @@ SUPPORT_TURN_ON, SUPPORT_TURN_OFF, MediaPlayerDevice, PLATFORM_SCHEMA, SUPPORT_VOLUME_STEP) -REQUIREMENTS = ['pymitv==1.0.0'] +REQUIREMENTS = ['pymitv==1.4.0'] DEFAULT_NAME = "Xiaomi TV" @@ -39,7 +39,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None): if host is not None: # Check if there's a valid TV at the IP address. - if not Discover().checkIp(host): + if not Discover().check_ip(host): _LOGGER.error( "Could not find Xiaomi TV with specified IP: %s", host ) diff --git a/requirements_all.txt b/requirements_all.txt index 9cb0f4b6fc2c2..62065e446df92 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -797,7 +797,7 @@ pymailgunner==1.4 pymediaroom==0.5 # homeassistant.components.media_player.xiaomi_tv -pymitv==1.0.0 +pymitv==1.4.0 # homeassistant.components.mochad pymochad==0.2.0