Commit Graph

168 Commits (640cd519dd2dbd9ae3d98f405f1ba43bf00321fe)

Author SHA1 Message Date
Sid b456d97e65
Replace pylint protected-access with Ruff SLF001 (#115735) 2024-05-06 20:33:26 +02:00
J. Nick Koston a6a47c0b44
Make aiohttp_cors a top level import (#115563)
* Make aiohttp_cors a top level import

This was moved to a late import in #27935 but there is no
longer any need to import it late in the event loop as aiohttp_cors
is listed in pyproject.toml so it will always be available

* drop requirements as they are all top level now

* drop requirements as they are all top level now

* adjust
2024-04-15 21:06:59 +02:00
Marc Mueller 3c5089bc3f
Update import for EventStateChangedData [a-h] (#114899) 2024-04-04 11:48:36 -10:00
Marc Mueller 25237e0377
Replace EventType with Event [a-g] (#112739) 2024-03-08 19:35:17 +01:00
Marc Mueller 0e3945ca6c
Add empty line after module docstring [d-f] (#112698) 2024-03-08 14:15:26 +01:00
Marc Mueller f3594c543d
Use KEY_HASS [a-g] (#112609) 2024-03-07 18:09:20 +01:00
J. Nick Koston 72ac2f127f
Wait to start emulated_hue until the started event (#112477) 2024-03-05 22:25:11 -10:00
J. Nick Koston 2b19783311
Await service calls in emulated_hue instead of making them blocking (#111674) 2024-02-27 12:44:27 -10:00
J. Nick Koston 567a179084
Simplify emulated_hue exposed entities cache (#109890)
Also avoids holding stale States in memory which can prevent
garbage collection of linked contexts
2024-02-09 21:43:46 -05:00
Marc Mueller 7a89e58873
Use builtin TimeoutError [e-i] (#109679) 2024-02-05 12:00:37 +01:00
Jan Bouwhuis 134cc78400
Fix processing supported color modes for emulated_hue (#108803) 2024-01-24 22:15:00 +01:00
J. Nick Koston 038e55a2cb
Fix emulated_hue brightness check (#106783) 2024-01-02 12:51:05 +01:00
Thomas Hollstegge 6deb6ddbc4
Use correct state for emulated_hue covers (#106516) 2023-12-28 09:30:26 -10:00
J. Nick Koston 1b048ff388
Remove HomeAssistantAccessLogger (#104173) 2023-11-29 10:40:19 -07:00
J. Nick Koston cf9299df59
Avoid duplicate calls to color_supported and color_temp_supported in emulated_hue (#104096) 2023-11-16 23:22:13 -06:00
J. Nick Koston 7803ca2612
Fix emulated_hue with None values (#104020) 2023-11-15 10:27:50 +01:00
J. Nick Koston 547c38a515
Cache emulated_hue local ip check (#102020) 2023-10-14 16:19:10 -10:00
Marc Mueller 0b2b486754
Update mypy to 1.6.0 (#101780) 2023-10-11 13:25:11 +02:00
Robert Resch e4742c04f2
Fix missspelled package names (#100670) 2023-09-21 10:57:23 +02:00
Ville Skyttä e7b6037419
Remove unnnecessary pylint configs from components [e-l]* (#99004) 2023-08-25 09:46:34 +02:00
Marc Mueller e2d2ec8817
Use asyncio.timeout [b-e] (#98448) 2023-08-15 08:30:20 -05:00
J. Nick Koston 8719aa76ca
Avoid calling the http access logging when logging is disabled in emulated_hue (#97750) 2023-08-04 11:46:19 +02:00
Marc Mueller 797a9c1ead
Improve `async_track_state_added/removed_domain` callback typing (#97126) 2023-07-24 09:11:41 +02:00
Marc Mueller 0cc396b863
Use EventType for state changed [a-h] (#97116) 2023-07-24 08:04:13 +02:00
J. Nick Koston 34dcd98440
Only construct enum __or__ once in emulated_hue (#97114) 2023-07-23 18:17:46 -05:00
J. Nick Koston 7995d3777a
Fix package names to match pypi index metadata (#93883)
* Fix package names to match pypi index metadata

* Fix package names to match pypi index metadata

* Fix package names to match pypi index metadata

* Fix package names to match pypi index metadata

* Fix package names to match pypi index metadata

* Fix package names to match pypi index metadata

* Fix package names to match pypi index metadata

* Fix package names to match pypi index metadata

* Fix package names to match pypi index metadata

* Fix package names to match pypi index metadata

* Fix package names to match pypi index metadata

* Fix package names to match pypi index metadata

* Fix package names to match pypi index metadata

* Fix package names to match pypi index metadata

* Fix package names to match pypi index metadata

* Fix package names to match pypi index metadata

* Fix package names to match pypi index metadata

* Fix package names to match pypi index metadata

* Fix package names to match pypi index metadata

* Fix package names to match pypi index metadata

* Fix package names to match pypi index metadata

* Fix package names to match pypi index metadata

* Fix package names to match pypi index metadata

* Fix package names to match pypi index metadata

* Fix package names to match pypi index metadata

* Fix package names to match pypi index metadata

* Fix package names to match pypi index metadata

* Fix package names to match pypi index metadata

* Fix package names to match pypi index metadata

* Fix package names to match pypi index metadata

* Fix package names to match pypi index metadata

* Fix package names to match pypi index metadata

* Fix package names to match pypi index metadata

* Fix package names to match pypi index metadata

* Fix package names to match pypi index metadata

* uses _

* uses -

* fix metadata
2023-05-31 21:12:53 -04:00
J. Nick Koston e27554f7a6
Improve http handler performance (#93324) 2023-05-21 13:36:03 -05:00
J. Nick Koston 8e07b71644
Use the json load helper in a few more incoming web requests (#90194)
* Use the json load helper in a few more incoming web requests

* drop hassio change as there is no coverage there

* Remove everything except emulated_hue since its has its own site/web
2023-03-24 15:38:08 -04:00
Erik Montnemery 78c9b70c8d
Sort manifests 3 (#87024) 2023-02-08 20:19:19 +01:00
Thomas Hollstegge 79f385afde
Add myself as codeowner for emulated_hue (#87659) 2023-02-07 15:43:47 -06:00
Thomas Hollstegge 589ff54e63
Do not return cached values for entity states in emulated_hue (#87642)
* Do not return cached values for state and brightness

* Move building the uncached state dict behind a lru_cache (_build_entity_state_dict)

---------

Co-authored-by: J. Nick Koston <nick@koston.org>
2023-02-07 13:39:08 -05:00
Nicklas Johnson 49d7bbe55d
Fix emulated hue SO_REUSEPORT when creating the upnp socket for proper sharing (#86916)
Co-authored-by: J. Nick Koston <nick@koston.org>
fixes undefined
2023-02-05 14:57:22 -06:00
Gregory Haynes 936ffafd27
Add missing name field to emulated_hue config (#87456)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-02-05 11:34:37 -06:00
Franck Nijhof 5e81d28116
Update black to 23.1.0 (#87188) 2023-02-02 18:35:24 +01:00
Franck Nijhof 79b52a2b41
Stricter pylint message control (#86154) 2023-01-20 13:47:55 +01:00
J. Nick Koston 5cde3ca4e1
Switch emulated_hue to use async_timeout instead of asyncio.wait_for (#78608) 2022-09-17 08:34:44 +02:00
epenet 7871a517a8
Import constants from root (#78271) 2022-09-12 18:53:05 +02:00
epenet ff356205bf
Use platform constants from root (#78032) 2022-09-08 12:24:45 +02:00
epenet f14bb8195f
Import climate constants from root [a-l] (#78021) 2022-09-08 11:24:15 +02:00
J. Nick Koston 006ea441ad
Pickup emulated_hue codeowner (#73725)
- I made some changes to this during this cycle so I
  want to get notifications for the next release.
2022-06-20 10:27:38 +02:00
J. Nick Koston f4d339119f
Cache which entities are exposed in emulated_hue (#73093) 2022-06-09 21:17:37 -10:00
J. Nick Koston 4c11cc3dbb
Additional cleanups for emulated_hue (#73004)
* Additional cleanups for emulated_hue

Followup to https://github.com/home-assistant/core/pull/72663#discussion_r884268731

* split long lines
2022-06-05 09:32:59 +02:00
J. Nick Koston 1c334605b6
Enable strict typing to emulated_hue (#72676)
* Add typing to emulated_hue part 2

* cleanups

* adjust targets in test
2022-05-30 08:49:37 +02:00
J. Nick Koston 237ef6419b
Add basic typing to emulated_hue (#72663)
* Add basic typing to emulated_hue

* type a few more places

* fixes

* numbers are always stringified

* numbers are always stringified

* coverage

* drop assert
2022-05-29 18:27:32 +02:00
Marc Mueller 9b9b553521
Disable no-self-use [pylint] (#70641)
* Disable no-self-use

* Remove disable comments
2022-04-25 07:41:01 -07:00
epenet c61378337a
Use EntityFeature enums in emulated_hue (#69573) 2022-04-07 15:22:56 +02:00
J. Nick Koston 723dcbafca
Complete fan speed transition from #59781 (#67743) 2022-03-09 10:38:12 +01:00
Josh Soref 2f5f6cc05e
spelling: components/emulated_hue (#64250)
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
2022-01-19 09:14:57 +01:00
Marc Mueller 7b78862a11
Revert "Use Platform enum [emulated_hue] (#63498)" (#63576)
This reverts commit 4fd555f508.
2022-01-07 11:38:48 +01:00
Marc Mueller 4fd555f508
Use Platform enum [emulated_hue] (#63498) 2022-01-05 20:27:01 +01:00