@@ -54,7 +54,7 @@ def update(coordinator):
5454def test_the_http_call_does_not_go_through_an_executor ():
5555 coordinator = build (text = TWO_BOTTLES )
5656 update (coordinator )
57- assert "get_inventory" not in coordinator ._hass .executor_jobs , (
57+ assert "get_inventory" not in coordinator .hass .executor_jobs , (
5858 "the blocking client is still being used"
5959 )
6060
@@ -63,7 +63,7 @@ def test_parsing_still_runs_in_the_executor():
6363 """CPU-bound work stays off the event loop even though I/O no longer needs it."""
6464 coordinator = build (text = TWO_BOTTLES )
6565 update (coordinator )
66- assert coordinator ._hass .executor_jobs == ["_parse_and_process" ], (
66+ assert coordinator .hass .executor_jobs == ["_parse_and_process" ], (
6767 "parsing must be the only executor job, and must still be one"
6868 )
6969
@@ -74,13 +74,13 @@ def test_parsing_still_runs_in_the_executor():
7474def test_the_request_targets_the_library_endpoint ():
7575 coordinator = build (text = TWO_BOTTLES )
7676 update (coordinator )
77- assert coordinator ._hass .session .requests [0 ]["url" ] == BASE_URL
77+ assert coordinator .hass .session .requests [0 ]["url" ] == BASE_URL
7878
7979
8080def test_the_request_carries_the_expected_query ():
8181 coordinator = build (text = TWO_BOTTLES )
8282 update (coordinator )
83- params = coordinator ._hass .session .requests [0 ]["params" ]
83+ params = coordinator .hass .session .requests [0 ]["params" ]
8484 assert params ["User" ] == "alice"
8585 assert params ["Password" ] == "s3cret"
8686 assert params ["Table" ] == "Inventory"
0 commit comments