core/tests/components/twitch
Jason Parker d21b8166f0
Add subscription tier attribute to Twitch integration. (#128870)
* Add subscription tier to Twitch integration.

* Add test for Twitch tiers.  Tests do not currently pass, so this is only theoretical.

* Fix variable type

* Show tier levels as 1,2,3 instead of the raw API values of 1000,2000,3000.

* Make Twitch subscription tier fixtures strings.

* Use proper assertion value for subscription tier test.

Edited on a bus on my phone. 😎

* Update homeassistant/components/twitch/coordinator.py

* Update tests/components/twitch/test_sensor.py

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-10-21 21:54:10 +02:00
..
fixtures Add subscription tier attribute to Twitch integration. (#128870) 2024-10-21 21:54:10 +02:00
__init__.py
conftest.py
test_config_flow.py
test_init.py
test_sensor.py Add subscription tier attribute to Twitch integration. (#128870) 2024-10-21 21:54:10 +02:00