Skip to content

Commit

Permalink
return on set
Browse files Browse the repository at this point in the history
  • Loading branch information
rewardone committed Oct 15, 2023
1 parent 1c21c3b commit 1c350ef
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "ayla_iot_unofficial"
version = "1.0.9"
version = "1.0.10"
authors = [
{ name="Reward One", email="[email protected]" },
]
Expand Down
2 changes: 1 addition & 1 deletion src/ayla_iot_unofficial/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
AylaReadOnlyPropertyError,
)

__version__ = '1.0.9'
__version__ = '1.0.10'
4 changes: 4 additions & 0 deletions src/ayla_iot_unofficial/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,7 @@ def start_vacation_mode(self):
PropertyName = "vacation_mode" # because _clean property, 'set' is removed ... "set_vacation_mode"
PropertyValue = 1
self.set_property_value(PropertyName, PropertyValue)
return True

async def async_start_vacation_mode(self):
"""
Expand All @@ -700,6 +701,7 @@ async def async_start_vacation_mode(self):
PropertyName = "vacation_mode" # because _clean property, 'set' is removed ... "set_vacation_mode"
PropertyValue = 1
await self.async_set_property_value(PropertyName, PropertyValue)
return True

def stop_vacation_mode(self):
"""
Expand All @@ -709,6 +711,7 @@ def stop_vacation_mode(self):
PropertyName = "vacation_mode" # because _clean property, 'set' is removed ... "set_vacation_mode"
PropertyValue = 0
self.set_property_value(PropertyName, PropertyValue)
return True

async def async_stop_vacation_mode(self):
"""
Expand All @@ -718,6 +721,7 @@ async def async_stop_vacation_mode(self):
PropertyName = "vacation_mode" # because _clean property, 'set' is removed ... "set_vacation_mode"
PropertyValue = 0
await self.async_set_property_value(PropertyName, PropertyValue)
return True

class DevicePropertiesView(abc.Mapping):
"""Convenience API for device properties"""
Expand Down

0 comments on commit 1c350ef

Please sign in to comment.