Skip to content

Commit

Permalink
fix door state reversed in tamper (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
cayossarian committed Aug 25, 2024
1 parent 58420ce commit 6a88e0d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion custom_components/span_panel/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class SpanPanelBinarySensorEntityDescription(
key="doorState",
name="Door State",
device_class=BinarySensorDeviceClass.TAMPER,
value_fn=lambda status_data: status_data.is_door_closed,
value_fn=lambda status_data: not status_data.is_door_closed,
),
SpanPanelBinarySensorEntityDescription(
key="eth0Link",
Expand Down
2 changes: 1 addition & 1 deletion custom_components/span_panel/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"iot_class": "local_polling",
"issue_tracker": "https://github.com/SpanPanel/span/issues",
"requirements": [],
"version": "0.0.11",
"version": "0.0.12",
"zeroconf": [
{
"type": "_span._tcp.local."
Expand Down
2 changes: 1 addition & 1 deletion custom_components/span_panel/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Version for span."""

__version__ = "0.0.11"
__version__ = "0.0.12"

0 comments on commit 6a88e0d

Please sign in to comment.