-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alternative ip5306 battery level handling #49
base: master
Are you sure you want to change the base?
Conversation
components/ip5306/ip5306.cpp
Outdated
@@ -40,8 +40,7 @@ void IP5306::loop() { | |||
case 0x80: value = 75; break; | |||
case 0x00: value = 100; break; | |||
} | |||
if (!this->battery_level_->has_state() || (this->battery_level_->state != value)) | |||
this->battery_level_->publish_state(value); | |||
this->battery_level_->publish_state(value); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be indented a little bit more?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed. Fixed it in my fork, but not sure how to 'republish' this in this pull request.
👍 |
Ident on line 43
the esp32 camera stuff should be in a different branch |
I'm afraid i've got no idea how to split branches AND keep the stuff working for me. Git is not my thing i'm afraid. |
you can make a branch off of this branch (to hold onto esp32 cam stuff), and then just delete the esp32 cam folder from this branch. or you could cherry pick the esp32 cam commits onto a new branch, and then checkout commit |
for issue #45 this would be the proposed changes and some HA integration optimizations for just the ip5306 custom component.