Closed dmulcahey closed 3 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 93.55%. Comparing base (
db12f68
) to head (89fd3cd
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This PR creates 2 helpers that are used to reduce the overhead needed to refresh polling things.
GlobalUpdater
is added to refresh things that need to update from local state (non async). DeviceCounterSensor, RSSISensor and LQISensor are currently using this. These should be updated to leverage events or callbacks once zigpy provides the appropriate feedback mechanism.DeviceAvailabilityChecker
is added to periodically check the available state of a devicea new flag was also added to
Device
that tracks whether or not a device is on the networkfixes #9 fixes #10