Skip to content

Commit edba232

Browse files
committed
fix test_power_sensor
1 parent fe53ae2 commit edba232

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_power_sensor.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
from pydaikin.daikin_brp069 import DaikinBRP069
1111

12+
from .test_init import client_session
13+
1214

1315
@pytest.fixture
1416
def device():
@@ -107,7 +109,7 @@ async def magic_get_resource(resource, retries=3):
107109
return dict(foo='bar')
108110

109111
with patch.object(DaikinBRP069, 'discover_ip'):
110-
device = DaikinBRP069('ip')
112+
device = DaikinBRP069('ip', client_session)
111113
device._cool_energy_100w_ticks = cool_energy_100w_ticks
112114
device._heat_energy_100w_ticks = heat_energy_100w_ticks
113115
device._consume_100w_cool = _consume_100w_cool

0 commit comments

Comments
 (0)