Add sensors to LOQED integration for battery percentage and BLE stength (#95726)

* Add sensors for battery percentage and BLE stength

* Use translatable name for BLE strength, no longer pass enity to sensor
This commit is contained in:
Mike Woudenberg 2023-07-07 05:09:34 +02:00 committed by GitHub
parent d2bcb5fa87
commit ba1266a893
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 81 additions and 1 deletions

View file

@ -48,6 +48,7 @@ def lock_fixture() -> loqed.Lock:
mock_lock.name = "LOQED smart lock"
mock_lock.getWebhooks = AsyncMock(return_value=webhooks_fixture)
mock_lock.bolt_state = "locked"
mock_lock.battery_percentage = 90
return mock_lock