Skip to content

Commit

Permalink
shutter: expose target_position:step property
Browse files Browse the repository at this point in the history
Signed-off-by: Stephan Peijnik-Steinwender <speijnik@gmail.com>
  • Loading branch information
speijnik authored and jabesq committed Jun 18, 2024
1 parent 6469940 commit fe405ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/pyatmo/modules/base_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"monitoring": lambda x, _: x.get("monitoring", False) == "on",
"battery_level": lambda x, y: x.get("battery_vp", x.get("battery_level")),
"place": lambda x, _: Place(x.get("place")),
"target_position__step": lambda x, _: x.get("target_position:step"),
}


Expand Down
1 change: 1 addition & 0 deletions src/pyatmo/modules/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ def __init__(self, home: Home, module: ModuleT):
super().__init__(home, module) # type: ignore # mypy issue 4335
self.current_position: int | None = None
self.target_position: int | None = None
self.target_position__step: int | None = None

async def async_set_target_position(self, target_position: int) -> bool:
"""Set shutter to target position."""
Expand Down

0 comments on commit fe405ab

Please sign in to comment.