Kane610 / aiounifi

Asynchronous library to communicate with Unifi Controller
MIT License
60 stars 53 forks source link

Rework test content type / refactor if tests in connection/login #641

Closed mkmer closed 7 months ago

mkmer commented 7 months ago

After reviewing the possible content types, I believe the text/json should be application/json. After making the change, all original code passes tests. This allows for a bit of refactoring in the login if chain that may be more like what you were thinking.

This also "works" - no real need to change it, but I think it is a bit easier to read?