epenet
e07bf61f03
Import AsyncGenerator from collections.abc in tests ( #121019 )
...
* Force import of Async/Generator from collections.abc
* Adjust
* Don't force
2024-07-04 20:24:27 +02:00
Marc Mueller
59e178df3b
Import Generator from typing_extensions (5) ( #118993 )
2024-06-06 17:33:27 +02:00
Joost Lekkerkerker
3d2ecd6a28
Refactor Twitch tests ( #114330 )
...
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
2024-05-27 10:09:12 +02:00
Sid
82a60fe8ad
Enable Ruff RSE ( #113695 )
2024-03-18 00:40:38 +01:00
Sid
0b9c9aff62
Add ruff rules PIE790, PIE794, PIE807, PIE810 ( #113617 )
2024-03-16 11:04:58 -10:00
Jonny Bergdahl
64b42a3651
Fix Twitch auth token refresh ( #112833 )
...
* Fix for expired token
* Add auth token refresh.
* Eliminate extra auth call
* Fixed mock client
---------
Co-authored-by: Jonny Bergdahl <bergdahl@users.noreply.github.com>
2024-03-13 20:16:00 +01:00
Marc Mueller
aa16a9d707
Add empty line after module docstring (3) ( #112750 )
2024-03-08 20:38:34 +01:00
Joost Lekkerkerker
25a80cd46f
Add config flow to Twitch ( #93451 )
...
* Update twitch API
* Update twitchAPI
* Add tests
* Apply suggestions from code review
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
* Update sensor.py
* Update sensor.py
* Update sensor.py
* Update sensor.py
* Update sensor.py
* Fix coverage
* Move Twitch constants to separate file
* Move Twitch constants to separate file
* Move Twitch constants to separate file
* Add application credentials
* Add config flow
* Try to add tests
* Add strings
* Add tests
* Add tests
* Improve tests
* Fix tests
* Extract Twitch client creation
* Fix reauth
* Remove import flow
* Remove import flow
* Remove reauth
* Update
* Fix Ruff
* Fix feedback
* Add strings
* Add reauth
* Do stuff in init
* Fix stuff
* Fix stuff
* Fix stuff
* Fix stuff
* Fix stuff
* Start with tests
* Test coverage
* Test coverage
* Remove strings
* Cleanup
* Fix feedback
* Fix feedback
---------
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-09-27 15:45:52 +02:00
Marc Mueller
45ec314232
Replace typing.Optional with new typing syntax ( #97068 )
2023-07-22 17:03:53 -05:00
Joost Lekkerkerker
c12fae4775
Bump TwitchAPI to 3.10.0 ( #92418 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-05-21 21:13:59 +02:00
Markus Pöschl
245482d802
Add Twitch subscription and additional stats ( #31122 )
...
* add oauth functionality and additional attributes
* Add tests WIP
* Make mocks work the correct way
* Use CONF_TOKEN constant for config
* Remove twitch from .coveragerc
* Update homeassistant/components/twitch/sensor.py
Lets be consistent
Co-Authored-By: springstan <46536646+springstan@users.noreply.github.com>
Co-authored-by: springstan <46536646+springstan@users.noreply.github.com>
2020-02-18 11:51:37 -08:00