MatthewFlamm / pytest-homeassistant-custom-component

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

Extend test with oauth2 code to reproduce #180 #181

Open jwillemsen opened 6 months ago

jwillemsen commented 6 months ago
* tests/test_config_flow.py:
jwillemsen commented 6 months ago

Reproducer for #180

jwillemsen commented 5 months ago

I made this working for my integration test, see https://github.com/jwillemsen/daikin_onecta/pull/94, I will try to find out what is the change that is required here to fix this CI

MatthewFlamm commented 5 months ago

I'm not that familiar with oath2 in homeassistant. I would assume that you have to register something or add some code to the integration that is tested?

jwillemsen commented 5 months ago

I still haven't figured out why it now works with my custom integration, it looks it is not just the change in my test code, when I have some spare time I will try if I can find some necessary code that needs to be added to the test integration as part of this repo, something is missing somewhere

MatthewFlamm commented 5 months ago

Made this draft as this doesn't look close to implementing. I highly suspect code needs to be added to custom_components/ here for the test to work.