unify production app configuration and ML routes
This commit is contained in:
@@ -49,8 +49,6 @@ def test_entities_returns_reader_data() -> None:
|
||||
|
||||
def test_entities_returns_503_without_home_assistant_config() -> None:
|
||||
with TestClient(app) as client:
|
||||
if hasattr(app.state, "ha_reader"):
|
||||
delattr(app.state, "ha_reader")
|
||||
response = client.get("/v1/entities")
|
||||
assert response.status_code == 503
|
||||
|
||||
|
||||
Reference in New Issue
Block a user