MatthewFlamm / pytest-homeassistant-custom-component

Package to automatically extract testing plugins from Home Assistant for custom component testing
MIT License
66 stars 10 forks source link

Fix broken area_registry fixture in 2024.2 beta #179

Closed bramstroker closed 8 months ago

bramstroker commented 8 months ago

They wrapped the area items in a AreaRegistryItems object

MatthewFlamm commented 8 months ago

Thanks for trying to fix this issue.

However, the code in src/pytest_homeassistant_custom_component is auto generated via GitHub actions. If this is the code in the homeassistant testing, it should get updated automatically on the next release here.

bramstroker commented 8 months ago

@MatthewFlamm Ah, I see. In HA the code is still the old way, however I see they don't use that fixture anywhere in their codebase. As it's such a small function I'll just inline it in my own project to get my test suite up and running asap again.