From ca0c2c06c8cc28a78b31e2cad1321879fdc2f418 Mon Sep 17 00:00:00 2001 From: Sebastian Steinmann Date: Sun, 15 Sep 2019 09:04:47 +0200 Subject: [PATCH] #19: Changed the structure to support hacs --- .../sector_alarm}/__init__.py | 2 +- .../sector_alarm}/alarm_control_panel.py | 0 custom_components/sector_alarm/manifest.json | 8 ++++++++ .../sector_alarm}/sensor.py | 0 info.md | 17 +++++++++++++++++ 5 files changed, 26 insertions(+), 1 deletion(-) rename {sector_alarm => custom_components/sector_alarm}/__init__.py (98%) rename {sector_alarm => custom_components/sector_alarm}/alarm_control_panel.py (100%) create mode 100644 custom_components/sector_alarm/manifest.json rename {sector_alarm => custom_components/sector_alarm}/sensor.py (100%) create mode 100644 info.md diff --git a/sector_alarm/__init__.py b/custom_components/sector_alarm/__init__.py similarity index 98% rename from sector_alarm/__init__.py rename to custom_components/sector_alarm/__init__.py index 3e03a7e..6528300 100644 --- a/sector_alarm/__init__.py +++ b/custom_components/sector_alarm/__init__.py @@ -41,7 +41,7 @@ vol.Optional(CONF_CODE_FORMAT, default='^\\d{4,6}$'): cv.string, vol.Optional(CONF_THERMOMETERS, default=True): cv.boolean, vol.Optional(CONF_ALARM_PANEL, default=True): cv.boolean, - vol.Optional(CONF_VERSION, default='v1_1_70'): cv.string + vol.Optional(CONF_VERSION, default='v1_1_71'): cv.string }), }, extra=vol.ALLOW_EXTRA) diff --git a/sector_alarm/alarm_control_panel.py b/custom_components/sector_alarm/alarm_control_panel.py similarity index 100% rename from sector_alarm/alarm_control_panel.py rename to custom_components/sector_alarm/alarm_control_panel.py diff --git a/custom_components/sector_alarm/manifest.json b/custom_components/sector_alarm/manifest.json new file mode 100644 index 0000000..0feac51 --- /dev/null +++ b/custom_components/sector_alarm/manifest.json @@ -0,0 +1,8 @@ +{ + "domain": "hass_sectoralarm", + "name": "Hass Sectoralarm", + "documentation": "https://github.com/mgejke/hass-sectoralarm", + "dependencies": ["sector_alarm"], + "codeowners": ["mgejke"], + "requirements": ["aiohttp", "asyncsector>=0.2.0"] + } \ No newline at end of file diff --git a/sector_alarm/sensor.py b/custom_components/sector_alarm/sensor.py similarity index 100% rename from sector_alarm/sensor.py rename to custom_components/sector_alarm/sensor.py diff --git a/info.md b/info.md new file mode 100644 index 0000000..996fc60 --- /dev/null +++ b/info.md @@ -0,0 +1,17 @@ +# hass-sectoralarm + +A Sector Alarm component for Home Assistant + +Add the following to your settings file: +``` +sector_alarm: + email: youremail@something.com + password: ******* + alarm_id: + code: + thermometers: + alarm_panel: + version: +``` + +Skip optional lines completely if not wanted. \ No newline at end of file