* New binary sensor for connectivity
* Add binary_sensor
* New binary sensor for connectivity
* Add binary_sensor
* Handle values returned as None
* Small text update for Uptime
* Update homeassistant/components/upnp/binary_sensor.py
Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
* Update homeassistant/components/upnp/binary_sensor.py
Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
* Update homeassistant/components/upnp/binary_sensor.py
Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
* Update homeassistant/components/upnp/binary_sensor.py
Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
* Update homeassistant/components/upnp/binary_sensor.py
Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
* Update homeassistant/components/upnp/binary_sensor.py
Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
* Update homeassistant/components/upnp/binary_sensor.py
Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
* Update homeassistant/components/upnp/binary_sensor.py
Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
* Updates based on review
* Update homeassistant/components/upnp/binary_sensor.py
Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
* Further updates based on review
* Set device_class as a class atribute
* Create 1 combined data coordinator
and UpnpEntity class
* Updates on coordinator
* Update comment
* Fix in async_step_init for coordinator
* Add async_get_status to mocked device
and set times polled for each call seperately
* Updated to get device through coordinator
Check polling for each status call seperately
* Use collections.abc instead of Typing for Mapping
* Remove adding device to hass.data as coordinator
is now saved
* Removed setting _coordinator
* Added myself as codeowner
* Update type in __init__
* Removed attributes from binary sensor
* Fix async_unload_entry
* Add expected return value to is_on
Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
* Store coordinator at Device
* Use DeviceUpdater to follow config/location changes
* Cleaning up
* Fix unit tests + review changes
* Don't test internals
* Simplification of upnp component
* Make update interval configurable
* Description
* Require minimal value of 30
* Black
* Linting
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
* 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>
* Catch asyncio.TimeoutError, show a proper message instead
* Throttle updates to max once per 30s
* Change code owner
* Fix CODEOWNERS + linting
* Warn on connection timeout
* Add and use speed constants
* Add and use meter based volume and area constants
* Add and use more mass unit constants
* Add and use concentration unit constants
* Add and use watts per square meter constant
* Use more time constants
* Use more data constants
* Add and use time related constants
* Sort time constants and reuse them in data rate constants
* Fix greeneyemonitor import
* Fix greeneyemonitor import V2
* Fix failing here_travel_time test
* Add TIME_MONTHS and TIME_YEARS
* Use TIME_MINUTES in opentherm_gw and isy994
* Add and use TIME_MILLISECONDS
* Change inconsistent ones
* Add TIME_MICROSECONDS and TIME_WEEKS
* Use constants in apcupsd and travisci
* Fix import error in upnp sensor.py
* Fix isy994 sensor.py using TIME_YEARS
* Fix dyson tests
* Use TIME_SECONDS in more places
* Use TIME_DAYS in google wifi
* Change datetime.now() to dt_util.now() in cases where the functionality should stay the same
These changes should not affect the functionality, rather cleanup our codebase.
In general we would like integrations to not to use datetime.now() unless there's a very good
reason for it, rather use our own dt_util.now() which makes the code aware of our current time
zone.
* Use datetime.utcnow() for season sensor to get offset-naive utc time
* Revert "Use datetime.utcnow() for season sensor to get offset-naive utc time"
This reverts commit 5f36463d9c7d52f8e11ffcec7e57dfbc7b21bdd1.
* BOM sensor last_updated should be UTC as well
* Run black
* Remove unused last_partition_update variable
* Properly connect sensors to hub
Refs #20958
* Don't connect (merge) with main device
* Provide manufacturer
* Linting
* Do connect upnp-sensors to main device
* Linting
* Fix requirements_all.txt