Skip to content

Commit

Permalink
Merge pull request #82 from unixorn/add-poetry-hooks
Browse files Browse the repository at this point in the history
Add poetry hooks
  • Loading branch information
unixorn authored Mar 26, 2023
2 parents 243423a + 73ad8f0 commit d5cc4f6
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 21 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repos:
hooks:
- id: clean-up-pyc-and-pyo-files
name: Scrub all .pyc and .pyo files before committing
entry: ./hooks/scripts/clean-up-pyc-and-pyo-files
entry: ./.hook-scripts/clean-up-pyc-and-pyo-files
language: script

- repo: https://github.com/pre-commit/pre-commit-hooks
Expand Down
4 changes: 2 additions & 2 deletions ha_mqtt_discoverable/sensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ class BinarySensorInfo(EntityInfo):
off_delay: Optional[int] = None
"""For sensors that only send on state updates (like PIRs),
this variable sets a delay in seconds after which the sensor’s state will be updated back to off."""
payload_off: str = "on"
payload_off: str = "off"
"""Payload to send for the ON state"""
payload_on: str = "off"
payload_on: str = "on"
"""Payload to send for the OFF state"""


Expand Down
34 changes: 17 additions & 17 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "ha-mqtt-discoverable"
version = "0.8.0"
version = "0.8.1"
description = ""
authors = ["Joe Block <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit d5cc4f6

Please sign in to comment.