Jan Bouwhuis
edb28be964
Avoid redundant calls to async_write_ha_state in mqtt device_tracker ( #100767 )
...
Avoid redundant calls to async_ha_write_state
2023-09-24 12:52:13 +02:00
Jan Bouwhuis
948b34b045
Do not force update mqtt device_tracker ( #98838 )
2023-08-24 20:09:14 +02:00
Erik Montnemery
7539cf25be
Don't require passing identifiers to DeviceRegistry.async_get_device ( #96479 )
...
* Require keyword arguments to DeviceRegistry.async_get_device
* Update tests
* Update tests
* Don't enforce keyword arguments
2023-07-13 13:39:25 -04:00
Jan Bouwhuis
a81fe517c1
Make mqtt device_tracker state_topic optional when json_attribute_topic is used ( #93322 )
...
* Make device_tracker state_topic optional
* No state_topic needed
2023-05-22 15:49:18 +02:00
Jan Bouwhuis
bb15923968
Rename MQTT entry mock and cleanup ( #91223 )
...
Rename to mqtt_mock_entry and cleanup
2023-04-12 09:43:03 +02:00
Jan Bouwhuis
9965d9d81d
Fix mqtt device_tracker is not reloading yaml ( #90639 )
2023-04-01 15:17:53 -04:00
Jan Bouwhuis
d865440012
Prepare MQTT common tests part3 ( #90022 )
2023-03-21 09:19:20 +01:00
epenet
50cbabb2d8
Add type hints to integration tests (part 15) ( #88006 )
2023-02-15 10:00:49 +01:00
Jan Bouwhuis
41a92a872f
Add missed type hint on MQTT device tracker test ( #87847 )
2023-02-10 22:42:56 +01:00
epenet
bb174780b9
Apply registry type hints on mqtt platform tests ( #87758 )
...
Apply registry fixture types on platform tests
2023-02-09 11:53:56 +01:00
Jan Bouwhuis
df76e31cdf
Apply MQTT fixture types on platform tests ( #87722 )
...
* Apply MQTT fixture types on platform tests
* Add caplog type hint
* Add hass_ws_client type hint
* Add tmp_path type hint
* Add hass_client_no_auth type hint
2023-02-09 09:48:22 +01:00
Franck Nijhof
76bf6f164f
Clean up unnecessary registry mocks from mqtt tests ( #87728 )
...
* Clean up unnecessary registry mocks from mqtt tests
* Fix helper methods
2023-02-09 08:19:06 +01:00
Jan Bouwhuis
1a414f1433
Add hass and `None` return type on MQTT platform tests ( #87713 )
...
Add hass and `None` return type on MQTT tests
2023-02-08 18:08:03 +01:00
Jonathan de Jong
b67009dee3
Allow MQTT device trackers to be able to the reset the location name for auto zone inference ( #83952 )
...
* adds auto-zone to mqtt device trackers
* black formatting
* abbr
* change abbreviation
* add test
* fade to black
* Modify custom overrides
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
* add custom + abbr payload and fix test docstrings
* change auto_zone to reset
* change RST to None, address isort
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
2022-12-20 17:38:40 +01:00
Jan Bouwhuis
4f3919cb95
Move mqtt device_tracker files ( #82581 )
...
Move mqtt device_tracker files to single file
2022-11-23 16:24:56 +01:00
Jan Bouwhuis
7c2e7863d2
Remove legacy YAML support from MQTT ( #82102 )
2022-11-17 22:55:31 +01:00
Jan Bouwhuis
a4792998a2
Refactor MQTT tests to use modern platform schema part 1 ( #77387 )
...
* Tests alarm_control_panel
* Tests binary_sensor
* Tests button
* Tests camera
* Tests Climate + corrections default config
* Tests cover
* Tests device_tracker
* Tests fan
* Tests humidifier
* Fix test_supported_features test fan
* Tests init
* Tests legacy vacuum
* Derive DEFAULT_CONFIG_LEGACY from DEFAULT_CONFIG
* Commit suggestion comment changes
2022-09-06 11:02:15 +02:00
Jan Bouwhuis
5930f056a8
Mqtt support config_entry unload ( #70149 )
...
* squashed commits for rebase
* Flake
* Fix reloading issue manual legacy items
* Improve ACS sync for unsubscribe at disconnect
* Processed review comments
* Update homeassistant/components/mqtt/client.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* No need to await entry setup
* Remove complication is_connected
* Update homeassistant/components/mqtt/__init__.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-07-12 11:07:18 +02:00
J. Nick Koston
51b4d15c8c
Speed up mqtt tests ( #73423 )
...
Co-authored-by: jbouwh <jan@jbsoft.nl>
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
2022-06-13 10:17:10 -10:00
Jan Bouwhuis
657e7f9a4c
Simplify MQTT test for setup manual mqtt item from yaml ( #72916 )
...
simplify test setup manual mqtt item from yaml
2022-06-13 13:44:12 +02:00
Jan Bouwhuis
52561ce076
Update MQTT tests to use the config entry setup ( #72373 )
...
* New testframework and tests for fan platform
* Merge test_common_new to test_common
* Add alarm_control_panel
* Add binary_sensor
* Add button
* Add camera
* Add climate
* Add config_flow
* Add cover
* Add device_tracker_disovery
* Add device_trigger
* Add diagnostics
* Add discovery
* Add humidifier
* Add init
* Add lecacy_vacuum
* Add light_json
* Add light_template
* Add light
* Add lock
* Add number
* Add scene
* Add select
* Add sensor
* Add siren
* Add state_vacuum
* Add subscription
* Add switch
* Add tag
* Add trigger
* Add missed tests
* Add another missed test
* Add device_tracker
* Remove commented out code
* Correct tests according comments
* Improve mqtt_mock_entry and recover tests
* Split fixtures with and without yaml setup
* Update fixtures manual_mqtt
* Update fixtures mqtt_json
* Fix test tasmota
* Update fixture mqtt_room
* Revert fixture changes, improve test
* re-add test
2022-06-02 14:24:46 +02:00
Jan Bouwhuis
d092861926
Move manual configuration of MQTT device_tracker to the integration key ( #72493 )
2022-05-26 13:02:39 -07:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Paulus Schoutsen
ec47216388
Use built-in test helpers on 3.8 ( #34901 )
2020-04-30 13:29:50 -07:00
Franck Nijhof
03dd92d51b
Use set literals in tests ( #33669 )
2020-04-05 02:20:09 +02:00
springstan
9801810552
Use f-strings in integrations starting with "B"-"E" ( #32121 )
...
* Use f-strings in integrations starting with B
* Use f-strings in integrations starting with C
* Use f-strings in integrations starting with D
* Use f-strings in integrations starting with E
* Fix pylint errors
* Fix pylint errors v2
* Fix tests
* Fix tests v2
2020-02-24 08:47:52 -08:00
Ville Skyttä
e6388e186c
Remove unnecessary string literal concatenations ( #30360 )
2020-01-02 21:17:10 +02:00
Raman Gupta
4cb984842a
Support custom source type for MQTT device tracker ( #27838 )
...
* support custom source type for MQTT device tracker
* fix typo
* add abbreviation
2019-10-22 22:26:29 -07:00
Raman Gupta
4e25807b7d
Add ability for MQTT device tracker to map non-default topic payloads to zones/states ( #27143 )
...
* add ability for MQTT device tracker to map nondefault topic payloads to zones
* update new parameter name and add abbreviation
* support for payload_home, payload_not_home, and payload_custom
* use constants STATE_NOT_HOME and STATE_HOME as defaults
* reference state constants directly
* add empty dict as default for payload_custom
* change parameter name for custom mapping of payloads to non-home zones to be more descriptive
* removed 'payload_other_zones' per ballobs review
* remove abbreviation for 'payload_other_zones'
* add tests for feature
2019-10-17 17:51:27 -07:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Paulus Schoutsen
70ed58a78d
Restructure device tracker ( #23862 )
...
* Restructure device tracker
* Docstyle
* Fix typing
* Lint
* Lint
* Fix tests
2019-05-15 23:43:45 +02:00
Martin Hjelmare
4fe0cd76f8
Clean up mqtt device tracker tests ( #23700 )
...
* Move mqtt device tracker test under mqtt dir
* Patch config file load and save
* Clean up
* Sort imports
* Put expected value last in assertions
2019-05-05 11:50:38 -07:00