Add lock
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.path.insert(0, str(Path(__file__).parent.parent))
|
||||
|
||||
@ -10,6 +11,7 @@ from custom_components.hon.button import BUTTONS
|
||||
from custom_components.hon.climate import CLIMATES
|
||||
from custom_components.hon.fan import FANS
|
||||
from custom_components.hon.light import LIGHTS
|
||||
from custom_components.hon.lock import LOCKS
|
||||
from custom_components.hon.number import NUMBERS
|
||||
from custom_components.hon.select import SELECTS
|
||||
from custom_components.hon.sensor import SENSORS
|
||||
@ -18,12 +20,13 @@ from custom_components.hon.switch import SWITCHES
|
||||
entities = {
|
||||
"binary_sensor": BINARY_SENSORS,
|
||||
"button": BUTTONS,
|
||||
"light": LIGHTS,
|
||||
"climate": CLIMATES,
|
||||
"fan": FANS,
|
||||
"light": LIGHTS,
|
||||
"lock": LOCKS,
|
||||
"number": NUMBERS,
|
||||
"select": SELECTS,
|
||||
"sensor": SENSORS,
|
||||
"fan": FANS,
|
||||
"switch": SWITCHES,
|
||||
}
|
||||
|
||||
|
@ -11,12 +11,13 @@ if __name__ == "__main__":
|
||||
from custom_components.hon.const import APPLIANCES
|
||||
from custom_components.hon.binary_sensor import BINARY_SENSORS
|
||||
from custom_components.hon.button import BUTTONS
|
||||
from custom_components.hon.light import LIGHTS
|
||||
from custom_components.hon.climate import CLIMATES
|
||||
from custom_components.hon.fan import FANS
|
||||
from custom_components.hon.light import LIGHTS
|
||||
from custom_components.hon.lock import LOCKS
|
||||
from custom_components.hon.number import NUMBERS
|
||||
from custom_components.hon.select import SELECTS
|
||||
from custom_components.hon.sensor import SENSORS
|
||||
from custom_components.hon.fan import FANS
|
||||
from custom_components.hon.switch import (
|
||||
SWITCHES,
|
||||
HonControlSwitchEntityDescription,
|
||||
@ -28,12 +29,13 @@ ENTITY_CATEGORY_SORT = ["control", "config", "sensor"]
|
||||
entities = {
|
||||
"binary_sensor": BINARY_SENSORS,
|
||||
"button": BUTTONS,
|
||||
"light": LIGHTS,
|
||||
"climate": CLIMATES,
|
||||
"fan": FANS,
|
||||
"light": LIGHTS,
|
||||
"lock": LOCKS,
|
||||
"number": NUMBERS,
|
||||
"select": SELECTS,
|
||||
"sensor": SENSORS,
|
||||
"fan": FANS,
|
||||
"switch": SWITCHES,
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user