Skip to content

Commit 5c6298e

Browse files
authored
Merge pull request #54 from rsnodgrass/0.4.6-branch
0.4.6
2 parents 7327746 + 7fe956c commit 5c6298e

File tree

4 files changed

+24
-3
lines changed

4 files changed

+24
-3
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## 0.4.6 (2024-04-21)
2+
3+
* add arm night
4+
* bump pyadtpulse to 1.2.9
5+
This should fix some more instances where it is needed to recover from errors/disconnects
6+
7+
## 0.4.5 (2024-04-04)
8+
9+
* bump minimum HA version to 2024.04.0
10+
* fix import of FlowResult
11+
112
## 0.4.4 (2024-03-06)
213

314
* update connection status and next update sensors on successful data fetch

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,5 +211,5 @@ No plans to implement support for the following (however, feel free to contribut
211211
212212
# Credits
213213
214-
* Huge thanks to [Richard Lippmann / rlippmann@](https://github.com/rlippmann). During 2023-2024 Richard made major contributions to pyadtpulse to support async behavior, including switching Home Assistant integration to fully use the async mechanism.
214+
* Huge thanks to [Robert Lippmann / rlippmann@](https://github.com/rlippmann). During 2023-2024 Richard made major contributions to pyadtpulse to support async behavior, including switching Home Assistant integration to fully use the async mechanism.
215215
* [Ryan Snodgrass](https://github.com/rsnodgrass) for originally contributing a skeleton and initial working implementation to have a Home Assistant integration.

custom_components/adtpulse/alarm_control_panel.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
STATE_ALARM_ARMING,
1818
STATE_ALARM_DISARMED,
1919
STATE_ALARM_DISARMING,
20+
STATE_ALARM_ARMED_NIGHT,
2021
STATE_UNAVAILABLE,
2122
)
2223
from homeassistant.core import HomeAssistant, callback
@@ -34,6 +35,7 @@
3435
ADT_ALARM_HOME,
3536
ADT_ALARM_OFF,
3637
ADT_ALARM_UNKNOWN,
38+
ADT_ALARM_NIGHT,
3739
)
3840
from pyadtpulse.site import ADTPulseSite
3941

@@ -56,6 +58,7 @@
5658
ADT_ALARM_HOME: STATE_ALARM_ARMED_HOME,
5759
ADT_ALARM_OFF: STATE_ALARM_DISARMED,
5860
ADT_ALARM_UNKNOWN: STATE_UNAVAILABLE,
61+
ADT_ALARM_NIGHT: STATE_ALARM_ARMED_NIGHT,
5962
}
6063

6164

@@ -128,6 +131,7 @@ def supported_features(self) -> AlarmControlPanelEntityFeature:
128131
AlarmControlPanelEntityFeature.ARM_AWAY
129132
| AlarmControlPanelEntityFeature.ARM_CUSTOM_BYPASS
130133
| AlarmControlPanelEntityFeature.ARM_HOME
134+
| AlarmControlPanelEntityFeature.ARM_NIGHT
131135
)
132136

133137
@property
@@ -204,6 +208,12 @@ async def async_alarm_arm_custom_bypass(self, code: str | None = None) -> None:
204208
self._site.async_arm_away(force_arm=True), FORCE_ARM
205209
)
206210

211+
async def async_alarm_arm_night(self) -> None:
212+
"""Send arm night command."""
213+
await self._perform_alarm_action(
214+
self._site.async_arm_night(), STATE_ALARM_ARMED_NIGHT
215+
)
216+
207217
async def async_alarm_arm_force_stay(self) -> None:
208218
"""Send force arm stay command.
209219

custom_components/adtpulse/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"iot_class": "cloud_push",
1010
"issue_tracker": "https://github.com/rsnodgrass/hass-adtpulse/issues",
1111
"requirements": [
12-
"pyadtpulse>=1.2.8"
12+
"pyadtpulse>=1.2.9"
1313
],
14-
"version": "0.4.5"
14+
"version": "0.4.6"
1515
}

0 commit comments

Comments
 (0)