Black
This commit is contained in:
1 parent
da05dfe708
commit
4de97abc3a
2676 files changed
+163166
-140084
No files matched your search
@@ -1,27 +1,27 @@
|
||||
"""Constants for the homekit_controller component."""
|
||||
DOMAIN = 'homekit_controller'
|
||||
DOMAIN = "homekit_controller"
|
||||
|
||||
KNOWN_DEVICES = "{}-devices".format(DOMAIN)
|
||||
CONTROLLER = "{}-controller".format(DOMAIN)
|
||||
ENTITY_MAP = '{}-entity-map'.format(DOMAIN)
|
||||
ENTITY_MAP = "{}-entity-map".format(DOMAIN)
|
||||
|
||||
HOMEKIT_DIR = '.homekit'
|
||||
PAIRING_FILE = 'pairing.json'
|
||||
HOMEKIT_DIR = ".homekit"
|
||||
PAIRING_FILE = "pairing.json"
|
||||
|
||||
# Mapping from Homekit type to component.
|
||||
HOMEKIT_ACCESSORY_DISPATCH = {
|
||||
'lightbulb': 'light',
|
||||
'outlet': 'switch',
|
||||
'switch': 'switch',
|
||||
'thermostat': 'climate',
|
||||
'security-system': 'alarm_control_panel',
|
||||
'garage-door-opener': 'cover',
|
||||
'window': 'cover',
|
||||
'window-covering': 'cover',
|
||||
'lock-mechanism': 'lock',
|
||||
'contact': 'binary_sensor',
|
||||
'motion': 'binary_sensor',
|
||||
'humidity': 'sensor',
|
||||
'light': 'sensor',
|
||||
'temperature': 'sensor'
|
||||
"lightbulb": "light",
|
||||
"outlet": "switch",
|
||||
"switch": "switch",
|
||||
"thermostat": "climate",
|
||||
"security-system": "alarm_control_panel",
|
||||
"garage-door-opener": "cover",
|
||||
"window": "cover",
|
||||
"window-covering": "cover",
|
||||
"lock-mechanism": "lock",
|
||||
"contact": "binary_sensor",
|
||||
"motion": "binary_sensor",
|
||||
"humidity": "sensor",
|
||||
"light": "sensor",
|
||||
"temperature": "sensor",
|
||||
}
|
||||
Reference in new issue
Block a user