mirror of
https://github.com/home-assistant/core
synced 2024-08-15 18:25:44 +02:00
![]() * NEST - Issues with lost internet connectivity #70479 Update Climate and Sensor entities to be unavailable when the device connectivity trait indicates the device is offline. The prior behavior, the last known values would be displayed indefinitely if the device lost internet connectivity. This was creating the illusion that the device was still connected. With this change, the Home Assistant entities will become unavailable when the device loses connectivity. * Update formatting * Add doc strings, fix indentation * Fix doc strings * Update test_climate_sdm.py * Update test_climate_sdm.py * Update test_sensor_sdm.py * Update test_sensor_sdm.py * more formatting fixes * Place availability logic in mixin 1. Consolidate repeated code into mixin and apply mixin to Climate and Sensor entities 2. Return true instead of super.available() 3. No unit test changes required to maintain code coverage * Define self._device is mixin to make linter happier * Remove logger used for debugging * restore whitespace * Fix test due to underlying merge change * Update availability_mixin.py * Move availability logic into device_info * Update sensor_sdm.py |
||
---|---|---|
.. | ||
auth | ||
backports | ||
components | ||
fixtures | ||
hassfest | ||
helpers | ||
pylint | ||
resources | ||
scripts | ||
test_util | ||
testing_config | ||
util | ||
__init__.py | ||
bandit.yaml | ||
common.py | ||
conftest.py | ||
ignore_uncaught_exceptions.py | ||
test_bootstrap.py | ||
test_config_entries.py | ||
test_config.py | ||
test_core.py | ||
test_data_entry_flow.py | ||
test_exceptions.py | ||
test_loader.py | ||
test_main.py | ||
test_requirements.py | ||
test_runner.py | ||
test_setup.py | ||
test_test_fixtures.py |