laetificat / haanna

Plugwise Anna API to use in conjunction with Home Assistant.
MIT License
5 stars 5 forks source link

Initial progress on schema set/get #6

Closed CoMPaTech closed 5 years ago

CoMPaTech commented 5 years ago

Progress supporting https://github.com/laetificat/anna-ha/issues/13

Code was aligned with PEP8, not required for PyPI but while at it with anna-ha took the liberty to apply it as well.

Code added is mainly to support getting/setting of schema (schedule) information. datetime and pytz added as dependencies to determine which schema was set last. This represents what a long-press on the top of Anna performs (unless I overlooked something).

PR on anna-ha will follow accordingly and linked back here.

CoMPaTech commented 5 years ago

Should be tested on 'someone elses device' :)

CoMPaTech commented 5 years ago

Merging as per tested by other users (preparing for PR on HA later today)