* Add last_user_name to alarm device_state_attributes
changed_by_entity_id was removed in 0.108 and replaced
with changed_by_keypad. This didn't provide enough
data to discover the last user that changed the alarm.
* Switch to changed_by and restore since
we loose the attributes on restart
* use built-in
* Add support to the Econet integration for new attributes: lower_temp, upper_temp, ambient_temp & is_enabled
* Removing support for ambient temperature
* Rewrite parts of upnp component
* Linting
* Add SCAN_INTERVAL
* Get values simultaneously
* Move to time related constants, as per #32065
* Linting
* Move constant KIBIBYTE to homeassistant.const
* Simplify code
* Fix tests for #33344
* Changes after review
* Update homeassistant/components/upnp/sensor.py
* Changes after review
* Formatting
* Formatting
* Use ST from discovery info to avoid swapping device_types if device advertises multiple versions
* Linting
* Requirements for upnp + dlna_dmr components
* Linting
* Regen requirements
* Changes after review by @MartinHjelmare
* Changes after review by @MartinHjelmare
* Formatting
* Linting
* Changes after review by @MartinHjelmare
* Changes after review by @MartinHjelmare
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
* added the ability to mock a "long poll" get request by setting up the
waiting request and feeding responses to it
with this, refactored the qwikswitch test so it doesn't use global variables
and is more understandable and maintainable
* added import asyncio from merge
* added assert that first call with long_poll has empty content
* passing json instead of the binary string
* use json instead of text in mock requests
* refactored to use a proxy
* return the proxy also for the http methods other than get
* refactored so any side_effect can be used and created the long_poll side effect
* simplified by using kwargs
needed to move the json->text->content logic from mocker to mockrequest
* no need to explicitly define method and url
* HS220 dimmers are handled as lights with a limited feature set
* Dimmers look up has has_emeter every call so this is cached as well now
to resovle the performance issue.