Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-r committed Dec 8, 2024
1 parent 2ab5d64 commit 18f855e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ def test_charging_binary_sensor(mock_hass, mock_coordinator, mock_client) -> Non
"mode": "CONNECTED",
"allSessionSlots": [],
}
sensor._last_reading = {"power": {"watt": 100}, "batterySoc": {"wh": 40}}
assert sensor._calculate_state() is True
assert sensor.is_on() is True

Check failure on line 75 in tests/test_binary_sensor.py

View workflow job for this annotation

GitHub Actions / Unit Tests

test_charging_binary_sensor TypeError: 'bool' object is not callable


def test_pending_approval_binary_sensor(
Expand Down

0 comments on commit 18f855e

Please sign in to comment.