* added device info and unique id * removed wrong attribute * added base entity * rename domain * added entity.py to coveragerc * added base entity for sensors and alarm panel * add generic type translation * rename functions * rename device name to device model * set _attr_name = None * pass in only the entry_id instead of the full config_entry * set unique id to device_id or entry id * use deviceinfo class * moved _attr_name = None to entities * Update homeassistant/components/lupusec/alarm_control_panel.py Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> * Update homeassistant/components/lupusec/entity.py Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> * Update homeassistant/components/lupusec/entity.py Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> * remove DOMAIN from unique id * removed redundant function * Update homeassistant/components/lupusec/alarm_control_panel.py Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> * Update homeassistant/components/lupusec/entity.py Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> --------- Co-authored-by: suaveolent <suaveolent@users.noreply.github.com> Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
39 lines
1 KiB
Python
39 lines
1 KiB
Python
"""Constants for the Lupusec component."""
|
|
|
|
from lupupy.constants import (
|
|
TYPE_CONTACT_XT,
|
|
TYPE_DOOR,
|
|
TYPE_INDOOR_SIREN_XT,
|
|
TYPE_KEYPAD_V2,
|
|
TYPE_OUTDOOR_SIREN_XT,
|
|
TYPE_POWER_SWITCH,
|
|
TYPE_POWER_SWITCH_1_XT,
|
|
TYPE_POWER_SWITCH_2_XT,
|
|
TYPE_SMOKE,
|
|
TYPE_SMOKE_XT,
|
|
TYPE_WATER,
|
|
TYPE_WATER_XT,
|
|
TYPE_WINDOW,
|
|
)
|
|
|
|
DOMAIN = "lupusec"
|
|
|
|
INTEGRATION_TITLE = "Lupus Electronics LUPUSEC"
|
|
ISSUE_PLACEHOLDER = {"url": "/config/integrations/dashboard/add?domain=lupusec"}
|
|
|
|
|
|
TYPE_TRANSLATION = {
|
|
TYPE_WINDOW: "Fensterkontakt",
|
|
TYPE_DOOR: "Türkontakt",
|
|
TYPE_SMOKE: "Rauchmelder",
|
|
TYPE_WATER: "Wassermelder",
|
|
TYPE_POWER_SWITCH: "Steckdose",
|
|
TYPE_CONTACT_XT: "Fenster- / Türkontakt V2",
|
|
TYPE_WATER_XT: "Wassermelder V2",
|
|
TYPE_SMOKE_XT: "Rauchmelder V2",
|
|
TYPE_POWER_SWITCH_1_XT: "Funksteckdose",
|
|
TYPE_POWER_SWITCH_2_XT: "Funksteckdose V2",
|
|
TYPE_KEYPAD_V2: "Keypad V2",
|
|
TYPE_INDOOR_SIREN_XT: "Innensirene",
|
|
TYPE_OUTDOOR_SIREN_XT: "Außensirene V2",
|
|
}
|