Set mqtt binary_sensor unavailable if expire_after specified (#34259)

* Set self._expired=True if expire_after specified

* Added test_expiration_on_discovery_and_discovery_update_of_binary_sensor to mqtt/test_binary_sensor.py

* Fixed flake8 error

* Fixed isort error
This commit is contained in:
Tom authored and GitHub committed 2020-04-22 23:29:49 +02:00
1 parent a8cd7203df
commit d6ab36bf8e
3 files changed
+98 -6

No files matched your search