mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 22:57:17 +00:00
* rename xiaomi to xiaomi_aqara * rename xiaomi vacuum and xiaomi phillips light to xiaomi miio * update discovery and tests * style * update discovery and tests * Still use Philips as name
This commit is contained in:
parent
9c603d932d
commit
4126b8bd13
14
.coveragerc
14
.coveragerc
@ -208,12 +208,12 @@ omit =
|
|||||||
homeassistant/components/wink.py
|
homeassistant/components/wink.py
|
||||||
homeassistant/components/*/wink.py
|
homeassistant/components/*/wink.py
|
||||||
|
|
||||||
homeassistant/components/xiaomi.py
|
homeassistant/components/xiaomi_aqara.py
|
||||||
homeassistant/components/binary_sensor/xiaomi.py
|
homeassistant/components/binary_sensor/xiaomi_aqara.py
|
||||||
homeassistant/components/cover/xiaomi.py
|
homeassistant/components/cover/xiaomi_aqara.py
|
||||||
homeassistant/components/light/xiaomi.py
|
homeassistant/components/light/xiaomi_aqara.py
|
||||||
homeassistant/components/sensor/xiaomi.py
|
homeassistant/components/sensor/xiaomi_aqara.py
|
||||||
homeassistant/components/switch/xiaomi.py
|
homeassistant/components/switch/xiaomi_aqara.py
|
||||||
|
|
||||||
homeassistant/components/zabbix.py
|
homeassistant/components/zabbix.py
|
||||||
homeassistant/components/*/zabbix.py
|
homeassistant/components/*/zabbix.py
|
||||||
@ -332,7 +332,7 @@ omit =
|
|||||||
homeassistant/components/light/tplink.py
|
homeassistant/components/light/tplink.py
|
||||||
homeassistant/components/light/tradfri.py
|
homeassistant/components/light/tradfri.py
|
||||||
homeassistant/components/light/x10.py
|
homeassistant/components/light/x10.py
|
||||||
homeassistant/components/light/xiaomi_philipslight.py
|
homeassistant/components/light/xiaomi_miio.py
|
||||||
homeassistant/components/light/yeelight.py
|
homeassistant/components/light/yeelight.py
|
||||||
homeassistant/components/light/yeelightsunflower.py
|
homeassistant/components/light/yeelightsunflower.py
|
||||||
homeassistant/components/light/zengge.py
|
homeassistant/components/light/zengge.py
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
"""Support for Xiaomi binary sensors."""
|
"""Support for Xiaomi aqara binary sensors."""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from homeassistant.components.binary_sensor import BinarySensorDevice
|
from homeassistant.components.binary_sensor import BinarySensorDevice
|
||||||
from homeassistant.components.xiaomi import (PY_XIAOMI_GATEWAY, XiaomiDevice)
|
from homeassistant.components.xiaomi_aqara import (PY_XIAOMI_GATEWAY,
|
||||||
|
XiaomiDevice)
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
@ -2,7 +2,8 @@
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
from homeassistant.components.cover import CoverDevice
|
from homeassistant.components.cover import CoverDevice
|
||||||
from homeassistant.components.xiaomi import (PY_XIAOMI_GATEWAY, XiaomiDevice)
|
from homeassistant.components.xiaomi_aqara import (PY_XIAOMI_GATEWAY,
|
||||||
|
XiaomiDevice)
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
@ -45,7 +45,7 @@ SERVICE_HANDLERS = {
|
|||||||
SERVICE_AXIS: ('axis', None),
|
SERVICE_AXIS: ('axis', None),
|
||||||
SERVICE_APPLE_TV: ('apple_tv', None),
|
SERVICE_APPLE_TV: ('apple_tv', None),
|
||||||
SERVICE_WINK: ('wink', None),
|
SERVICE_WINK: ('wink', None),
|
||||||
SERVICE_XIAOMI_GW: ('xiaomi', None),
|
SERVICE_XIAOMI_GW: ('xiaomi_aqara', None),
|
||||||
'philips_hue': ('light', 'hue'),
|
'philips_hue': ('light', 'hue'),
|
||||||
'google_cast': ('media_player', 'cast'),
|
'google_cast': ('media_player', 'cast'),
|
||||||
'panasonic_viera': ('media_player', 'panasonic_viera'),
|
'panasonic_viera': ('media_player', 'panasonic_viera'),
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
import logging
|
import logging
|
||||||
import struct
|
import struct
|
||||||
import binascii
|
import binascii
|
||||||
from homeassistant.components.xiaomi import (PY_XIAOMI_GATEWAY, XiaomiDevice)
|
from homeassistant.components.xiaomi_aqara import (PY_XIAOMI_GATEWAY,
|
||||||
|
XiaomiDevice)
|
||||||
from homeassistant.components.light import (ATTR_BRIGHTNESS, ATTR_RGB_COLOR,
|
from homeassistant.components.light import (ATTR_BRIGHTNESS, ATTR_RGB_COLOR,
|
||||||
SUPPORT_BRIGHTNESS,
|
SUPPORT_BRIGHTNESS,
|
||||||
SUPPORT_RGB_COLOR, Light)
|
SUPPORT_RGB_COLOR, Light)
|
@ -21,7 +21,7 @@ from homeassistant.exceptions import PlatformNotReady
|
|||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
DEFAULT_NAME = 'Xiaomi Philips Light'
|
DEFAULT_NAME = 'Xiaomi Philips Light'
|
||||||
PLATFORM = 'xiaomi_philipslight'
|
PLATFORM = 'xiaomi_miio'
|
||||||
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
vol.Required(CONF_HOST): cv.string,
|
vol.Required(CONF_HOST): cv.string,
|
||||||
vol.Required(CONF_TOKEN): vol.All(cv.string, vol.Length(min=32, max=32)),
|
vol.Required(CONF_TOKEN): vol.All(cv.string, vol.Length(min=32, max=32)),
|
@ -1,7 +1,8 @@
|
|||||||
"""Support for Xiaomi sensors."""
|
"""Support for Xiaomi aqara sensors."""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from homeassistant.components.xiaomi import (PY_XIAOMI_GATEWAY, XiaomiDevice)
|
from homeassistant.components.xiaomi_aqara import (PY_XIAOMI_GATEWAY,
|
||||||
|
XiaomiDevice)
|
||||||
from homeassistant.const import TEMP_CELSIUS
|
from homeassistant.const import TEMP_CELSIUS
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
@ -1,8 +1,9 @@
|
|||||||
"""Support for Xiaomi binary sensors."""
|
"""Support for Xiaomi aqara binary sensors."""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from homeassistant.components.switch import SwitchDevice
|
from homeassistant.components.switch import SwitchDevice
|
||||||
from homeassistant.components.xiaomi import (PY_XIAOMI_GATEWAY, XiaomiDevice)
|
from homeassistant.components.xiaomi_aqara import (PY_XIAOMI_GATEWAY,
|
||||||
|
XiaomiDevice)
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
@ -98,7 +98,7 @@ def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
|
|||||||
|
|
||||||
|
|
||||||
class RoombaVacuum(VacuumDevice):
|
class RoombaVacuum(VacuumDevice):
|
||||||
"""Representation of a Xiaomi Vacuum cleaner robot."""
|
"""Representation of a Roomba Vacuum cleaner robot."""
|
||||||
|
|
||||||
def __init__(self, name, roomba):
|
def __init__(self, name, roomba):
|
||||||
"""Initialize the Roomba handler."""
|
"""Initialize the Roomba handler."""
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
Support for the Xiaomi vacuum cleaner robot.
|
Support for the Xiaomi vacuum cleaner robot.
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation
|
For more details about this platform, please refer to the documentation
|
||||||
https://home-assistant.io/components/vacuum.xiaomi/
|
https://home-assistant.io/components/vacuum.xiaomi_miio/
|
||||||
"""
|
"""
|
||||||
import asyncio
|
import asyncio
|
||||||
from functools import partial
|
from functools import partial
|
||||||
@ -27,7 +27,7 @@ _LOGGER = logging.getLogger(__name__)
|
|||||||
|
|
||||||
DEFAULT_NAME = 'Xiaomi Vacuum cleaner'
|
DEFAULT_NAME = 'Xiaomi Vacuum cleaner'
|
||||||
ICON = 'mdi:google-circles-group'
|
ICON = 'mdi:google-circles-group'
|
||||||
PLATFORM = 'xiaomi'
|
PLATFORM = 'xiaomi_miio'
|
||||||
|
|
||||||
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
vol.Required(CONF_HOST): cv.string,
|
vol.Required(CONF_HOST): cv.string,
|
@ -17,7 +17,7 @@ ATTR_RINGTONE_VOL = 'ringtone_vol'
|
|||||||
CONF_DISCOVERY_RETRY = 'discovery_retry'
|
CONF_DISCOVERY_RETRY = 'discovery_retry'
|
||||||
CONF_GATEWAYS = 'gateways'
|
CONF_GATEWAYS = 'gateways'
|
||||||
CONF_INTERFACE = 'interface'
|
CONF_INTERFACE = 'interface'
|
||||||
DOMAIN = 'xiaomi'
|
DOMAIN = 'xiaomi_aqara'
|
||||||
PY_XIAOMI_GATEWAY = "xiaomi_gw"
|
PY_XIAOMI_GATEWAY = "xiaomi_gw"
|
||||||
|
|
||||||
|
|
@ -298,7 +298,7 @@ holidays==0.8.1
|
|||||||
# homeassistant.components.camera.onvif
|
# homeassistant.components.camera.onvif
|
||||||
http://github.com/tgaugry/suds-passworddigest-py3/archive/86fc50e39b4d2b8997481967d6a7fe1c57118999.zip#suds-passworddigest-py3==0.1.2a
|
http://github.com/tgaugry/suds-passworddigest-py3/archive/86fc50e39b4d2b8997481967d6a7fe1c57118999.zip#suds-passworddigest-py3==0.1.2a
|
||||||
|
|
||||||
# homeassistant.components.xiaomi
|
# homeassistant.components.xiaomi_aqara
|
||||||
https://github.com/Danielhiversen/PyXiaomiGateway/archive/0.3.2.zip#PyXiaomiGateway==0.3.2
|
https://github.com/Danielhiversen/PyXiaomiGateway/archive/0.3.2.zip#PyXiaomiGateway==0.3.2
|
||||||
|
|
||||||
# homeassistant.components.sensor.dht
|
# homeassistant.components.sensor.dht
|
||||||
@ -752,8 +752,8 @@ python-juicenet==0.0.5
|
|||||||
# homeassistant.components.lirc
|
# homeassistant.components.lirc
|
||||||
# python-lirc==1.2.3
|
# python-lirc==1.2.3
|
||||||
|
|
||||||
# homeassistant.components.light.xiaomi_philipslight
|
# homeassistant.components.light.xiaomi_miio
|
||||||
# homeassistant.components.vacuum.xiaomi
|
# homeassistant.components.vacuum.xiaomi_miio
|
||||||
python-mirobo==0.2.0
|
python-mirobo==0.2.0
|
||||||
|
|
||||||
# homeassistant.components.media_player.mpd
|
# homeassistant.components.media_player.mpd
|
||||||
|
@ -11,7 +11,7 @@ from homeassistant.components.vacuum import (
|
|||||||
SERVICE_CLEAN_SPOT, SERVICE_LOCATE, SERVICE_RETURN_TO_BASE,
|
SERVICE_CLEAN_SPOT, SERVICE_LOCATE, SERVICE_RETURN_TO_BASE,
|
||||||
SERVICE_SEND_COMMAND, SERVICE_SET_FAN_SPEED, SERVICE_START_PAUSE,
|
SERVICE_SEND_COMMAND, SERVICE_SET_FAN_SPEED, SERVICE_START_PAUSE,
|
||||||
SERVICE_STOP, SERVICE_TOGGLE, SERVICE_TURN_OFF, SERVICE_TURN_ON)
|
SERVICE_STOP, SERVICE_TOGGLE, SERVICE_TURN_OFF, SERVICE_TURN_ON)
|
||||||
from homeassistant.components.vacuum.xiaomi import (
|
from homeassistant.components.vacuum.xiaomi_miio import (
|
||||||
ATTR_CLEANED_AREA, ATTR_CLEANING_TIME, ATTR_DO_NOT_DISTURB, ATTR_ERROR,
|
ATTR_CLEANED_AREA, ATTR_CLEANING_TIME, ATTR_DO_NOT_DISTURB, ATTR_ERROR,
|
||||||
CONF_HOST, CONF_NAME, CONF_TOKEN, PLATFORM,
|
CONF_HOST, CONF_NAME, CONF_TOKEN, PLATFORM,
|
||||||
SERVICE_MOVE_REMOTE_CONTROL, SERVICE_MOVE_REMOTE_CONTROL_STEP,
|
SERVICE_MOVE_REMOTE_CONTROL, SERVICE_MOVE_REMOTE_CONTROL_STEP,
|
Loading…
x
Reference in New Issue
Block a user