Skip to content

Feature/get gateway status#246

Open
hbattat wants to merge 6 commits intojbergler:developfrom
hbattat:feature/get-gateway-status
Open

Feature/get gateway status#246
hbattat wants to merge 6 commits intojbergler:developfrom
hbattat:feature/get-gateway-status

Conversation

@hbattat
Copy link
Copy Markdown

@hbattat hbattat commented Jan 24, 2026

This PR adds support for monitoring the status of TTLock Wifi Gateways. It introduces a new binary sensor that reports the online/offline status of each gateway associated with the account.

Fixes #71

@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 24, 2026

Codecov Report

❌ Patch coverage is 90.67797% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.58%. Comparing base (ac7c627) to head (a4cea42).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
tests/test_gateway.py 92.59% 4 Missing ⚠️
custom_components/ttlock/binary_sensor.py 90.62% 3 Missing ⚠️
custom_components/ttlock/api.py 33.33% 2 Missing ⚠️
custom_components/ttlock/coordinator.py 85.71% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #246      +/-   ##
===========================================
+ Coverage    85.25%   85.58%   +0.33%     
===========================================
  Files           22       23       +1     
  Lines         1594     1707     +113     
===========================================
+ Hits          1359     1461     +102     
- Misses         235      246      +11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

Gateway status

1 participant