core/tests/components/mqtt
Kyle Niewiada a5a926bcc6 Raise ConfigEntryNotReady for MQTT connection exception (#22540)
* Raise ConfigEntryNotReady for connection exception

Raise ConfigEntryNotReady for the connection exception like if the MQTT Server container/device is being restarted or was unavailable on boot.

* Add new exception

* grammar fix

* Possibly resolve hound comments

* raise `ConfigEntryNotReady` for mqtt connection error

* revert exceptions.py

* Update exceptions.py

* modify test to handle exception

* use constants to control exception scope

* Raise ConfigEntryNotReady for connection exception

Raise ConfigEntryNotReady for the connection exception like if the MQTT Server container/device is being restarted or was unavailable on boot.

* Add new exception

* Add new exception

* grammar fix

* Possibly resolve hound comments

* raise `ConfigEntryNotReady` for mqtt connection error

* revert exceptions.py

* Update exceptions.py

* modify test to handle exception

* use constants to control exception scope

* revert test change as it's not the same thing

* Update test_init.py

* Add test for MQTT OSError

* revert file changes from a bad rebase

* Rewrite test with valid syntax

* rewrite test to be less ambiguous

* add empty line

* add back 'axis'

* Remove empty line

* Update tests and undo merge from earlier

* correctly restore test for no connect broker

* fix test mock correctly

* line was too long. hit enter.
2019-04-03 21:51:01 -07:00
..
__init__.py Tweak Recorder 2016-07-11 08:56:07 -07:00
conftest.py Move mqtt_mock to tests/components/mqtt/conftest.py (#20621) 2019-01-31 21:22:29 +01:00
test_alarm_control_panel.py Add command_template and value_template for MQTT alarm (#21438) 2019-03-30 07:36:10 +01:00
test_binary_sensor.py Disable extra=vol.ALLOW_EXTRA for MQTT platforms. (#20562) 2019-01-29 09:29:02 -08:00
test_camera.py Fix encoding for MQTT camera (#20932) 2019-02-10 12:35:54 +01:00
test_climate.py Climate const.py move (#20945) 2019-02-14 20:34:43 +01:00
test_config_flow.py Small cleanup of MQTT platforms (#20503) 2019-01-27 18:54:52 +01:00
test_cover.py Add support for device_class to MQTT cover (#21044) 2019-02-13 19:58:46 +00:00
test_discovery.py Add missing abbreviations (#20741) 2019-02-04 10:54:40 -08:00
test_fan.py Write state directly in all MQTT platforms (#21971) 2019-03-12 14:46:48 -07:00
test_init.py Raise ConfigEntryNotReady for MQTT connection exception (#22540) 2019-04-03 21:51:01 -07:00
test_light.py Disable extra=vol.ALLOW_EXTRA for MQTT platforms. (#20562) 2019-01-29 09:29:02 -08:00
test_light_json.py Write state directly in all MQTT platforms (#21971) 2019-03-12 14:46:48 -07:00
test_light_template.py Disable extra=vol.ALLOW_EXTRA for MQTT platforms. (#20562) 2019-01-29 09:29:02 -08:00
test_lock.py Disable extra=vol.ALLOW_EXTRA for MQTT platforms. (#20562) 2019-01-29 09:29:02 -08:00
test_sensor.py Disable extra=vol.ALLOW_EXTRA for MQTT platforms. (#20562) 2019-01-29 09:29:02 -08:00
test_server.py Deprecate http.api_password (#21884) 2019-03-10 19:55:36 -07:00
test_subscription.py Pass Message object to MQTT message callbacks (#21959) 2019-03-13 12:58:20 -07:00
test_switch.py Disable extra=vol.ALLOW_EXTRA for MQTT platforms. (#20562) 2019-01-29 09:29:02 -08:00
test_vacuum.py Cleanup if discovered mqtt vacuum can't be added (#20549) 2019-01-28 15:56:47 -08:00