Skip to content

Fix range for battery information - #7

Merged
tchellomello merged 2 commits into
devfrom
battery
Feb 13, 2017
Merged

Fix range for battery information#7
tchellomello merged 2 commits into
devfrom
battery

Conversation

@tchellomello

Copy link
Copy Markdown
Member

Fix range for battery information to return 0-100 values

Fixes issue: #6

@tchellomello tchellomello added this to the v0.1.0 milestone Feb 13, 2017
Comment thread ring_doorbell/__init__.py Outdated
try:
return self.doorbell_attributes(name).get('battery_life')
value = int(self.doorbell_attributes(name).get('battery_life'))
if value > 100:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

multiple spaces after keyword

@tchellomello tchellomello added the bug Label for issues that report a bug label Feb 13, 2017
@tchellomello
tchellomello merged commit 2dab622 into dev Feb 13, 2017
@tchellomello
tchellomello deleted the battery branch February 13, 2017 16:58
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Label for issues that report a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants