* Report tilt position properly when inverting using tilt_max < tilt_min
* Add warning per review comment
* Add test for inverted tilt position configuration
* Separate non-numeric and out of range warnings per review comment
* Fix out of range message and add tests for not numeric and out of range messages
* hoist common MqttEntity properties
* remove default name for MqttEntity
Default naming is sensible enough
* disable overriding common MqttEntity schema
* merge common MqttEntity schemas into MQTT_ENTITY_COMMON_SCHEMA
If a package fails to install or partially installed importlib
version can return None. We now try pkg_resources first, then
try importlib, and handle the case where version unexpectedly
returns None
* Add device class CO2 to Fibaro
* Add device class CO2 to Awair
* Add device class CO2 to Tasmota
* Add device class CO2 to Netatmo
* Add device class CO2 to Ambient Station
* Update Tasmota tests
* Remove icon
* aemet: catch TypeError exceptions
format_float() and format_int() should also catch possible TypeError
exceptions.
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* aemet: correctly parse temperatures with a value of 0
Right now, when a temperature with a value of 0 is provided by the API, the if
condition isn't satisfied, return None instead of 0.
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* aemet: group format int/float exceptions
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Transition from HVAC_MODE_OFF to HVAC_MODE_HEAT are not executed because
target temperature is kept at OFF_TEMPERATURE, turning it into a no-op.
This change ensures that we increase the target temperature to at least
the minimum temperature when transitioning to HVAC_MODE_HEAT mode.
* Include changed variables in automation trace
* Deduplicate some code
* Tweak
* Apply suggestions from code review
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
* Fix format
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
* Update registries.py
Add concentration clusters recently added to zigpy
* Update measurement.py
Add concentration clusters recently added to ZigPy
* Update sensor.py
Add concentration clusters recently added to ZigPy
* Update sensor.py
remove unnecessary tabs
* Update measurement.py
remove unnecessary tabs
* Update sensor.py
Just adding CO and CO2 for now.
* Update registries.py
Just adding CO2 and CO for now.
* Update measurement.py
Just adding CO2 and CO for now
* Update sensor.py
import const CONCENTRATION_PARTS_PER_MILLION
* Update registries.py
removed trailing whitespace
* Update sensor.py
added extra blank lines and removed trailing whitespace
* Update measurement.py
added extra blank lines and removed trailing whitespace
* Update sensor.py
add device classes for CO and CO2
So far the Flo integration only supports shutoff valves. Add support for Flo leak detector pucks, which measure temperature and humidity in addition to providing leak alerts.
Since lacrosse.close() takes no arguments, but was directly added as a
listener to EVENT_HOMEASSISTANT_STOP, the following occured on shutdown:
Traceback (most recent call last):
File "/usr/lib/python/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
TypeError: close() takes 1 positional argument but 2 were given
We previously used a value in the linux default ephemerial port range
which meant that if something else happened to use that port HomeKit
would not start up. We now use a value below 32768 to ensure that
the port is not randomly unavailable
* Use SwitchEntity instead of ToggleEntity and adjust test patches as recommended
* Move async_create_entry out of try block in config_flow
* Patch pypi package instead of HA code
* Bump pylitterbot to 2021.2.6, fix tests, and implement other code review suggestions
* Bump pylitterbot to 2021.2.8, remove sleep mode start/end time from vacuum, adjust and add sensors for sleep mode start/end time
* Move icon helper back to Litter-Robot component and isoformat times on time sensors
* Merge action and condition traces
* Update __init__.py
* Add typing to AutomationTrace
* Make trace_get prepare a new trace by default
* Correct typing of trace_cv
* Fix tests
* Added OPENING & CLOSING State Support
Added support for OPENING and CLOSING states using a combination of
the required V_ variables. Simplified the determination of the
cover's state by use of a new enumeration and single method allowing
the state to be used by all three HomeAssistant query methods.
* Fixes for HomeAssistant Style
Corrections to style to allow flake8, isort, and black to pass.
* Peer Review Changes
Added @unique to the main enumeration. Removed unnecessary parens from
door state logic. Reordered CLOSING and CLOSED in the enumeration.
* Improve restoring data and better handling when the restore data is empty
Improve readability of some logic related to POE clients
* There is no need to check clients_all in Switch platform
* Add better tests when restoring state
* Port except handling shouldn't be needed anymore
* Walrusify get_last_state
* Increase coverage of init
* Increase coverage of config_flow
* Improve coverage of controller
* Minor improvement to switch test
* Fix review comment
* Mock websocket class
* Replace the rest of the old websocket event tests
* Improve websocket fixture for cleaner tests
* Fix typing
* Improve connection state signalling based on Martins feedback
* Improve tests of reconnection_mechanisms based on Martins review comments
* Fix unload entry
* Fix isort issue after rebase
* Fix martins comment on not using caplog
* Fix wireless clients test
* Fix martins comments on wireless clients test
* Initial prototype of automation tracing
* Small fixes
* Lint
* Move trace helpers to its own file
* Improve trace for state and numeric_state conditions
* Tweaks + apply suggestions from code review
* Index traces by automation_id, trace while script is running
* Refactor condition tracing
* Improve WS API to get traces for single automation
* Add tests
* Fix imports
* Fix imports
* Address review comments
* Cap logging of loops
* Remove unused ContextVar action_config