Skip to content

lock.sesame: Update pysesame, add state attributes#7953

Merged
pvizeli merged 1 commit into
home-assistant:devfrom
trisk:sesame-add-attrs
Jun 8, 2017
Merged

lock.sesame: Update pysesame, add state attributes#7953
pvizeli merged 1 commit into
home-assistant:devfrom
trisk:sesame-add-attrs

Conversation

@trisk
Copy link
Copy Markdown
Contributor

@trisk trisk commented Jun 8, 2017

Description:

  • Update pysesame requirement to 0.1.0 to support caching

  • Set available property based on API enable status

  • Add state attributes for device ID and battery level

Checklist:

If the code communicates with devices, web services, or third-party tools:

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass
  • New dependencies have been added to the REQUIREMENTS variable (example).
  • New dependencies are only imported inside functions that use them (example).
  • New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.

Copy link
Copy Markdown
Member

@pvizeli pvizeli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

Comment thread homeassistant/components/lock/sesame.py Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can cleanup your code and call the api direct without make propertys.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, wasn't sure if there was a preference since I saw this in some platforms.

* Update pysesame requirement to 0.1.0 to support caching

* Set `available` property based on API enabled status

* Add state attributes for device ID and battery level
@pvizeli pvizeli merged commit c52b18d into home-assistant:dev Jun 8, 2017
@balloob balloob mentioned this pull request Jun 16, 2017
@home-assistant home-assistant locked and limited conversation to collaborators Oct 20, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants