Skip to content
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

EvtBatteryStatus missing in aioflic.py #81

Open
dleffo opened this issue Nov 4, 2018 · 0 comments
Open

EvtBatteryStatus missing in aioflic.py #81

dleffo opened this issue Nov 4, 2018 · 0 comments

Comments

@dleffo
Copy link

dleffo commented Nov 4, 2018

I added this to the end of _dispatch_event from fliclib.py and added entry for bd_addr. It seemed to do the trick:

if event_name == "EvtBatteryStatus":
         listener = self._battery_status_listeners.get(items["listener_id"])
         if listener is not None:
                bd_addr = listener._bd_addr
                listener.on_battery_status(listener, bd_addr, items["battery_percentage"], items["timestamp"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant