Skip to content

Return the correct cable connection status during pending/offline states#77

Draft
jeverley wants to merge 4 commits into
mattrayner:masterfrom
jeverley:cable-state-when-status-pending
Draft

Return the correct cable connection status during pending/offline states#77
jeverley wants to merge 4 commits into
mattrayner:masterfrom
jeverley:cable-state-when-status-pending

Conversation

@jeverley

Copy link
Copy Markdown

Summary

This PR amends the handling for the cable connection binary sensor to ensure it is handled consistently during pending/offline states, currently it switches to unplugged whilst the pod status is pending/offline.

What's changed

  • The connected property checks the reported pod statuses rather than entity state to confirm if the cable is connected, this ensures it remains on (connected) after a command is issued from Home Assistant to the Pod Point cloud
  • The cable connection binary sensor now returns unknown rather than off (unplugged) if the device is offline

jeverley added 2 commits May 20, 2025 16:25
- Ensures that the cable connection binary sensor remains 'connected' after a command is issued from HA to the pod cloud
  - Currently it switches to unplugged whilst the pod state is 'Pending'
- The cable binary sensor now returns unknown rather than Unplugged if the device is offline
- Added return types for is_on properties
- Removed unused imports
@jeverley jeverley marked this pull request as draft May 20, 2025 15:40
@jeverley

Copy link
Copy Markdown
Author

I'll update the tests for this shortly.

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

Successfully merging this pull request may close these issues.

1 participant