Skip to content

Commit

Permalink
Experimental test alarm command for heat and CO
Browse files Browse the repository at this point in the history
  • Loading branch information
jbouwh committed Jul 7, 2022
1 parent 007a02e commit da31767
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions custom_components/elro_connects/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"config_flow": true,
"documentation": "https://github.com/jbouwh/ha-elro-connects",
"issue_tracker": "https://github.com/jbouwh/ha-elro-connects/issues",
"requirements": ["lib-elro-connects==0.4.4"],
"requirements": ["lib-elro-connects==0.4.5"],
"codeowners": ["@jbouwh"],
"iot_class": "local_polling",
"version": "0.1.4"
"version": "0.1.6"
}
8 changes: 4 additions & 4 deletions custom_components/elro_connects/siren.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from elro.command import (
SILENCE_ALARM,
TEST_ALARM,
TEST_ALARM_WATER,
TEST_ALARM_ALT,
CommandAttributes,
)
from elro.device import (
Expand Down Expand Up @@ -50,7 +50,7 @@ class ElroSirenEntityDescription(SirenEntityDescription):
device_class="carbon_monoxide",
name="CO Alarm",
icon="mdi:molecule-co",
test_alarm=TEST_ALARM,
test_alarm=TEST_ALARM_ALT,
silence_alarm=SILENCE_ALARM,
),
ALARM_FIRE: ElroSirenEntityDescription(
Expand All @@ -66,7 +66,7 @@ class ElroSirenEntityDescription(SirenEntityDescription):
device_class="heat",
name="Heat Alarm",
icon="mdi:fire-alert",
test_alarm=TEST_ALARM,
test_alarm=TEST_ALARM_ALT,
silence_alarm=SILENCE_ALARM,
),
ALARM_SMOKE: ElroSirenEntityDescription(
Expand All @@ -82,7 +82,7 @@ class ElroSirenEntityDescription(SirenEntityDescription):
device_class="moisture",
name="Water Alarm",
icon="mdi:water-alert",
test_alarm=TEST_ALARM_WATER,
test_alarm=TEST_ALARM_ALT,
silence_alarm=SILENCE_ALARM,
),
}
Expand Down
2 changes: 1 addition & 1 deletion requirements_test.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pytest-homeassistant-custom-component==0.4.0
lib-elro-connects==0.4.1
lib-elro-connects==0.4.5

0 comments on commit da31767

Please sign in to comment.