GitHub Action
ceb8bb4745
[ci skip] Translation update
2022-05-21 00:22:49 +00:00
epenet
99ad785d0a
Adjust setup type hints in mqtt ( #72227 )
2022-05-20 09:19:01 +02:00
Jan Bouwhuis
654b095498
Move manual configuration of MQTT alarm control panel to the integration key ( #72165 )
...
Add alarm_control_panel
2022-05-20 08:37:53 +02:00
Jan Bouwhuis
ed1c2ea2b8
Move manual configuration of MQTT fan and light to the integration key ( #71676 )
...
* Processing yaml config through entry setup
* Setup all platforms
* Update homeassistant/components/mqtt/__init__.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* adjust mock_mqtt - reference config from cache
* Fix test config entry override
* Add tests yaml setup
* additional tests
* Introduce PLATFORM_SCHEMA_MODERN
* recover temporary MQTT_BASE_PLATFORM_SCHEMA
* Allow extra key in light base schema, restore test
* Fix test for exception on platform key
* One deprecation message per platform
* Remove deprecation checks from modern schema
* Update homeassistant/components/mqtt/fan.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Update homeassistant/components/mqtt/fan.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Update homeassistant/components/mqtt/light/__init__.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Update homeassistant/components/mqtt/light/__init__.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Update homeassistant/components/mqtt/light/schema_json.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Update homeassistant/components/mqtt/light/schema_template.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Update homeassistant/components/mqtt/mixins.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* rename validate_modern_schema
* Do not fail platform if a single config is broken
* Update homeassistant/components/mqtt/__init__.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Fix tests on asserting log
* Update log. Make helper transparant, remove patch
* Perform parallel processing
* Update tests/components/mqtt/test_init.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Apply suggestions from code review
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update homeassistant/components/mqtt/mixins.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* black
* Fix tests and add #new_format anchor
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-05-19 15:04:53 +02:00
epenet
a0f741778a
Use HVACAction in mqtt ( #71726 )
2022-05-12 14:12:21 +02:00
TheHolyRoger
0fcdca2d71
Add optional base64 decoding of mqtt camera image ( #71223 )
...
Add unittest for b64 decoding of camera, fix linting
2022-05-09 21:40:15 +02:00
epenet
141688e210
Cleanup ServiceInfo compatibility ( #60540 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-05-09 14:17:48 +02:00
epenet
1be2438ef6
Use climate enums in mqtt ( #70696 )
2022-05-09 08:15:11 +02:00
Erik Montnemery
e9abfad361
Reject MQTT topics which include control- or non-characters ( #71263 )
2022-05-03 12:19:43 -07:00
epenet
09d61edd9f
Use LightEntityFeature enum in mqtt ( #71055 )
2022-04-29 22:47:26 +03:00
Erik Montnemery
2f9beb4a4a
Deprecate white_value support in MQTT light ( #71002 )
2022-04-29 08:37:49 +02:00
epenet
a8a7359c6f
Use VacuumEntityFeature in mqtt ( #70570 )
...
* Use VacuumEntityFeature in mqtt
* Fix tests
2022-04-25 11:34:06 +02:00
epenet
38d86fc7b1
Use ColorMode enum in mqtt ( #70579 )
2022-04-24 09:06:56 -10:00
Franck Nijhof
1e4aacaeb1
Replace Alarm Control Panel FORMAT_ constants with CodeFormat enum ( #69861 )
2022-04-18 19:37:32 +02:00
Jan Bouwhuis
3b2aae5045
Refactor MQTT discovery ( #67966 )
...
* Proof of concept
* remove notify platform
* remove loose test
* Add rework from #67912 (#1 )
* Move notify serviceupdater to Mixins
* Move tag discovery handler to Mixins
* fix tests
* Add typing for async_load_platform_helper
* Add add entry unload support for notify platform
* Simplify discovery updates
* Remove not needed extra logic
* Cleanup inrelevant or duplicate code
* reuse update_device and move to mixins
* Remove notify platform
* revert changes to notify platform
* Rename update class
* unify tag entry setup
* Use shared code for device_trigger `update_device`
* PoC shared dispatcher for device_trigger
* Fix bugs
* Improve typing - remove async_update
* Unload config_entry and tests
* Release dispatcher after setup and deduplicate
* closures to methods, revert `in` to `=`, updates
* Re-add update support for tag platform
* Re-add update support for device-trigger platform
* Cleanup rediscovery code revert related changes
* Undo discovery code shift
* Update homeassistant/components/mqtt/mixins.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Update homeassistant/components/mqtt/device_trigger.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Update homeassistant/components/mqtt/mixins.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* revert doc string changes
* move conditions
* typing and check config_entry_id
* Update homeassistant/components/mqtt/mixins.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* cleanup not used attribute
* Remove entry_unload code and tests
* update comment
* add second comment
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-04-15 12:35:08 +02:00
epenet
89dd199ac2
Use SirenEntityFeature enum in mqtt ( #69647 )
2022-04-08 10:37:12 +02:00
epenet
3e426c0fa6
Use EntityFeature enum in mqtt ( #69416 )
2022-04-07 09:44:26 +02:00
epenet
4c7e1fe060
Cleanup ENTITY_CATEGORIES_SCHEMA ( #66549 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-04-01 09:40:43 -07:00
Erik Montnemery
9b21a48048
Mend incorrectly imported MQTT config entries ( #68987 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-04-01 08:11:31 -07:00
Paulus Schoutsen
130ca2213f
Enforce EntityCategory enum ( #69015 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-03-31 15:04:33 -07:00
Jan Bouwhuis
4db2270f3d
Refactor MQTT scene to inherit MqttEntity ( #68883 )
...
* MQTT scene inherrits MqttEntity
* Default payload_on matches documentation
* remove CONF_ENABLED_BY_DEFAULT from schema return True as default
* Add to the schema, remove not overrided properties
* remove default payload_on
* Update homeassistant/components/mqtt/scene.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-03-30 15:46:45 +02:00
epenet
bfd84ba89c
Prettify yaml (services.yaml) ( #68878 )
2022-03-30 09:48:06 +02:00
Erik Montnemery
7e8d52e5a3
Fix race when handling rapid succession of MQTT discovery messages ( #68785 )
...
Co-authored-by: jbouwh <jan@jbsoft.nl>
2022-03-29 20:26:11 -07:00
epenet
5830481a53
Use new CONF_MODEL in mqtt ( #68832 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-29 12:49:00 +02:00
Paulus Schoutsen
69fcce3b2c
Remove energy usage from the switch base class ( #68821 )
...
* Remove energy usage from the switch base class
* Remove unused attributes from integrations
2022-03-28 18:56:04 -10:00
Marc Mueller
911b159281
Cleanup after pylint update ( #68657 )
2022-03-26 00:34:12 +01:00
Jan Bouwhuis
5afe8fd2db
Revert "Add MQTT notify platform ( #64728 )" ( #68505 )
...
This reverts commit e574a3ef1d
.
2022-03-22 12:51:24 +01:00
Jan Bouwhuis
c8fb86a8ed
Fix MQTT false positive deprecation warnings ( #68117 )
2022-03-14 12:39:44 +01:00
GitHub Action
c64b4d997b
[ci skip] Translation update
2022-03-13 00:18:58 +00:00
GitHub Action
dc31f420ed
[ci skip] Translation update
2022-03-12 00:17:47 +00:00
Erik Montnemery
e5523ef6b6
Correct local import of paho-mqtt ( #67944 )
...
* Correct local import of paho-mqtt
* Remove MqttClientSetup.mqtt class attribute
* Remove reference to MqttClientSetup.mqtt
2022-03-10 10:32:49 +01:00
GitHub Action
d0afc31063
[ci skip] Translation update
2022-03-10 00:17:10 +00:00
J. Nick Koston
723dcbafca
Complete fan speed transition from #59781 ( #67743 )
2022-03-09 10:38:12 +01:00
Jan Bouwhuis
e574a3ef1d
Add MQTT notify platform ( #64728 )
...
* Mqtt Notify service draft
* fix updates
* Remove TARGET config parameter
* do not use protected attributes
* complete tests
* device support for auto discovery
* Add targets attribute and support for data param
* Add tests and resolve naming issues
* CONF_COMMAND_TEMPLATE from .const
* Use mqtt as default service name
* make sure service has a unique name
* pylint error
* fix type error
* Conditional device removal and test
* Improve tests
* update description has_notify_services()
* Use TypedDict for service config
* casting- fix discovery - hass.data
* cleanup
* move MqttNotificationConfig after the schemas
* fix has_notify_services
* do not test log for reg update
* Improve casting types
* Simplify obtaining the device_id
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* await not needed
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Improve casting types and naming
* cleanup_device_registry signature change and black
* remove not needed condition
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-03-08 16:27:18 +01:00
Jan Bouwhuis
98adeb6070
Fix false positive MQTT climate deprecation warnings for defaults ( #67661 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-03-07 15:38:33 +01:00
Jan Bouwhuis
5ab4b5d15a
MQTT Improve warning override deprecated settings ( #67609 )
2022-03-04 12:39:29 +01:00
Jan Bouwhuis
9356bf1a8e
Fix MQTT config flow with advanced parameters ( #67556 )
...
* Fix MQTT config flow with advanced parameters
* Add test
2022-03-03 21:40:15 +01:00
Jan Bouwhuis
a97fe7aae0
Mqtt fix issue with displaying non UTF-8 payload ( #67471 )
...
* Mqtt fix issue with displaying non UTF-8 payload
* None or binary
* Casting and additional test
* casting
2022-03-02 17:01:47 +01:00
GitHub Action
e963ad96d4
[ci skip] Translation update
2022-03-01 00:23:47 +00:00
Erik Montnemery
5e4b16c69a
Remove custom WS command for removing MQTT devices ( #67381 )
...
* Remove custom WS command for removing MQTT devices
* Re-add removed test
2022-02-28 15:50:49 +01:00
Erik Montnemery
c7d59bb272
Fix race when unsubscribing from MQTT topics ( #67376 )
...
* Fix race when unsubscribing from MQTT topics
* Improve test
2022-02-28 14:19:50 +01:00
Franck Nijhof
21f3e5ef13
Fix MQTT config entry deprecation warnings ( #67174 )
2022-02-24 18:14:38 +01:00
epenet
e37402e1d5
Import tag ( #64539 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-02-23 09:55:31 -08:00
Jan Bouwhuis
845bf80e72
Mqtt improve test coverage ( #66279 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-02-23 12:29:32 +01:00
Erik Montnemery
c879bf295b
Deprecate manual MQTT configuration available in config flow ( #66247 )
2022-02-23 09:41:44 +01:00
GitHub Action
bdcdf52225
[ci skip] Translation update
2022-02-23 00:20:00 +00:00
GitHub Action
102ae9f0e3
[ci skip] Translation update
2022-02-22 00:17:23 +00:00
rubenverhoef
95de1dd446
Additional MQTT light command templates ( #63361 )
...
Co-authored-by: jbouwh <jan@jbsoft.nl>
2022-02-22 00:00:49 +01:00
GitHub Action
c4cc6ca0ba
[ci skip] Translation update
2022-02-20 00:20:09 +00:00
Marc Mueller
45d8d04c40
Use assignment expressions [other] ( #66882 )
2022-02-19 17:22:51 +01:00
Erik Montnemery
fcf774ecfc
Small cleanup of MQTT mixins ( #66812 )
2022-02-18 16:51:14 +01:00
Erik Montnemery
ba6d1976df
Improve MQTT device removal ( #66766 )
...
* Improve MQTT device removal
* Update homeassistant/components/mqtt/mixins.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Adjust tests
* Improve test coverage
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-02-18 13:45:25 +01:00
Erik Montnemery
2abcd7cd94
Correct state restoring for MQTT temperature sensors ( #66741 )
...
* Correct state restoring for MQTT temperature sensors
* Adjust test
* Adjust test
2022-02-18 11:35:44 +01:00
Erik Montnemery
98982c86e4
Add MQTT diagnostics ( #66730 )
...
* Add MQTT diagnostics
* Redact device tracker location
* Adjust tests
* Address comments from code review
2022-02-18 09:28:49 +01:00
Erik Montnemery
cd00464285
Remove use of hass.helpers from MQTT ( #66757 )
...
* Remove use of hass.helpers from MQTT
* Tweak
2022-02-17 23:18:03 +01:00
Erik Montnemery
750b48dcaf
Use pylint disable-next in MQTT ( #66758 )
2022-02-17 11:12:12 -08:00
Jan Bouwhuis
83846bb5cc
MQTT climate preset_modes rework ( #66062 )
...
* MQTT climate preset_modes rework
* Set deprection date to 2022.9 (6 months)
* add valid_preset_mode_configuration for discovery
* Update deprecation date
2022-02-17 13:51:35 +01:00
Erik Montnemery
be0ef5ad6c
Correct MQTT binary_sensor and sensor state restoring ( #66690 )
2022-02-16 14:07:21 -08:00
Maciej Bieniek
41c43fe639
Fix type of value in MQTT binary sensor ( #66675 )
2022-02-16 12:11:50 -08:00
Diogo Gomes
de2734bd0e
add entity_category ( #66377 )
2022-02-16 16:34:21 +01:00
GitHub Action
208671418e
[ci skip] Translation update
2022-02-16 00:14:09 +00:00
GitHub Action
ad0cb4831e
[ci skip] Translation update
2022-02-14 00:15:30 +00:00
Erik Montnemery
335a918118
Create MQTT discovery flow when manual config is present ( #66248 )
...
* Create MQTT discovery flow when manual config is present
* Change to integration_discovery flow
* Add test
* Add default handler for integration_discovery
2022-02-11 10:31:51 +01:00
GitHub Action
bed5002d61
[ci skip] Translation update
2022-02-11 00:14:55 +00:00
Erik Montnemery
fe38e6ba87
Drop MQTT import flow ( #66160 )
...
* Drop MQTT import flow
* Reload manually configured MQTT entities when config entry is setup
* Address review comments
* Actually remove the import flow
2022-02-10 21:09:57 +01:00
Jan Bouwhuis
678e56b8b7
Mqtt move to .const ( #65631 )
2022-02-10 09:18:35 +01:00
Erik Montnemery
da38d9ab80
Fix MQTT debug info ( #66146 )
2022-02-09 09:43:03 +01:00
Erik Montnemery
911e488d48
Fix ENTITY_CATEGORIES_SCHEMA ( #66108 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-02-08 14:00:53 -08:00
Erik Montnemery
55d8314093
Fix cleanup of MQTT debug info ( #66104 )
2022-02-08 12:49:25 -08:00
Erik Montnemery
33623c3fe8
Fix race in MQTT sensor and binary_sensor expire_after ( #66040 )
2022-02-07 15:47:23 -08:00
Erik Montnemery
8245ff7473
Log transmitted MQTT messages ( #65550 )
2022-02-04 17:35:32 +01:00
GitHub Action
b2f0882e67
[ci skip] Translation update
2022-02-04 00:13:58 +00:00
Jan Bouwhuis
2f0d0998a2
Add Mqtt vacuum `unknown` state ( #65311 )
...
* Add Mqtt vacuum `unknown` status
* Update tests/components/mqtt/test_state_vacuum.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-02-03 16:50:39 +01:00
Jan Bouwhuis
cf52357229
Add MQTT light unknown state support ( #65308 )
...
* Add MQTT light unknown sate support
* Update homeassistant/components/mqtt/light/schema_basic.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Update homeassistant/components/mqtt/light/schema_json.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Update homeassistant/components/mqtt/light/schema_template.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Update tests for default unknown state
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-02-03 16:49:57 +01:00
Jan Bouwhuis
2d011821ea
Add MQTT humidifier unknown state support ( #65302 )
...
* Add MQTT humidifier unknown state support
* Update homeassistant/components/mqtt/humidifier.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Fix tests for changed default optimistic state
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-02-03 16:49:09 +01:00
Jan Bouwhuis
711bd7169e
Add Mqtt Fan unknown state support ( #65301 )
...
* Add Mqtt Fan unknown state support
* Update homeassistant/components/mqtt/fan.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Adjust default state in tests
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-02-03 16:48:03 +01:00
Jan Bouwhuis
3d434dffc7
Add support Mqtt switch for unkown state ( #65294 )
...
* Mqtt switch allow unkown state
* correct type
* Update discovery tests
* Optimistic mode if not state_topic is configured.
* Default state UNKNOWN in optimistic mode
* fix discovery test
2022-02-03 16:47:24 +01:00
Jan Bouwhuis
63459feede
Return current state if template throws ( #65534 )
2022-02-03 16:46:36 +01:00
Erik Montnemery
f3a89de71f
Fix race when handling updated MQTT discovery data ( #65415 )
2022-02-02 17:12:22 -08:00
Erik Montnemery
fda0fbd115
Stringify MQTT payload in mqtt/debug/info WS response ( #65429 )
2022-02-02 18:08:48 +01:00
Jan Bouwhuis
2c07330794
Fix MQTT expire_after effects after reloading ( #65359 )
...
* Cleanup sensor expire triggers after reload
* fix test binary_sensor
* Also trigger cleanup parent classes
* Restore an expiring state after a reload
* correct discovery_update
* restore expiring state with remaining time
* Update homeassistant/components/mqtt/binary_sensor.py
description
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Log remaining time
* Move check
* check and tests reload
* remove self.async_write_ha_state()
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-02-02 16:14:52 +01:00
Erik Montnemery
627be81531
Import registries in MQTT mixins ( #65411 )
2022-02-02 10:32:11 +01:00
Jan Bouwhuis
4991f1a693
Use super() in mqtt siren init ( #65291 )
2022-01-31 13:16:45 +01:00
Jan Bouwhuis
6fdaec0847
Add MQTT siren platform ( #64440 )
...
* Add mqtt siren draft
* fix tests
* Intergrate notify platform
* tests and fixes siren platform
* Add tests notify platform
* config parameters and abbreviations
* remove duplicate key
* undo move topic abbreviation
* Move const CONF_MESSAGE_COMMAND_TEMPLATE
* Remove notify service integration
* Rework
* Update homeassistant/components/mqtt/siren.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Publish JSON by default
* Allow unknown state - rename value_template
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-01-31 10:31:57 +01:00
Jan Bouwhuis
bfaada34e2
Allow `unknown` state to be set ( #65183 )
2022-01-31 10:25:08 +01:00
GitHub Action
ca7d4234e1
[ci skip] Translation update
2022-01-31 00:14:28 +00:00
GitHub Action
77ef86faee
[ci skip] Translation update
2022-01-30 00:14:21 +00:00
Jan Bouwhuis
0cabf3e577
Fix MQTT climate action null warnings ( #64658 )
2022-01-27 08:41:27 +01:00
GitHub Action
dd4e5bb9c5
[ci skip] Translation update
2022-01-27 00:14:02 +00:00
epenet
78e92d1662
Adjust pylint plugin to enforce platform type hints ( #64836 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-24 18:51:06 +01:00
Jan Bouwhuis
efe5b0ca81
Add command template for MQTT button ( #63838 )
...
* Add command template for MQTT button
* Move CONF_COMMAND_TEMPLATE
2022-01-23 12:48:41 +01:00
GitHub Action
47d3fb1dec
[ci skip] Translation update
2022-01-23 00:13:53 +00:00
GitHub Action
9098c71cd4
[ci skip] Translation update
2022-01-22 00:13:08 +00:00
Jan Bouwhuis
7ea8d72133
Move CONF_COMMAND_TEMPLATE to .const ( #64558 )
2022-01-20 16:15:26 +01:00
Jan Bouwhuis
8b30751839
MQTT Remove unused and not tested code ( #64550 )
2022-01-20 13:47:46 +01:00
GitHub Action
04a2227f4b
[ci skip] Translation update
2022-01-19 00:13:35 +00:00
GitHub Action
c6d481ca01
[ci skip] Translation update
2022-01-17 00:14:48 +00:00
Marc Mueller
67c35652f0
Update typing - collections.abc (2) ( #63934 )
2022-01-12 09:04:37 +01:00
Jan Bouwhuis
65deaa1daf
Always send hvac_mode deprecate send_if_off ( #63814 )
2022-01-11 17:12:48 +01:00
Jan Bouwhuis
aa73e5bd72
Fix MQTT climate optimistic preset modes ( #63463 )
...
* Always publish when preset_mode is set
* Revert "Fixed isort error"
This reverts commit 1a3c5e6460
.
* isort
2022-01-11 17:08:26 +01:00
GitHub Action
d3cd813c5e
[ci skip] Translation update
2022-01-11 00:14:57 +00:00
Orce MARINKOVSKI
b78e22e012
Update MQTT light schema template ( #62759 )
...
* shema template update
* tests to cover the additional template variables
* fix flake8: too many blank lines
* Update schema_template.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-01-10 09:57:56 +01:00
Marc Mueller
945b67c5c5
Fix 3rd party imports ( #63455 )
2022-01-05 19:00:47 +01:00
Marc Mueller
ae6d9c229e
Use const imports [l-z] ( #63469 )
2022-01-05 18:21:20 +01:00
Marc Mueller
b168a8c7d0
Use imports from `helpers.typing` ( #63459 )
2022-01-05 14:56:34 +01:00
Erik Montnemery
d8e7236502
Cleanup handling of unsupported config keys in MQTT fan ( #62681 )
...
* Cleanup handling of unsupported config keys in MQTT fan
* Update fan.py
2022-01-03 17:54:03 +01:00
Erik Montnemery
1995a825f3
Reject MQTT light discovery using unsupported value_template ( #62682 )
...
* Reject MQTT light discovery using unsupported value_template
* Tweak
2022-01-03 17:16:26 +01:00
Jan Bouwhuis
dd0193052c
Add MQTT encoding parameter for all subscribed topics ( #62263 )
...
* Add encoding parameter for all subscribable topics
* test setup encoding incoming payload
* remove support for device_tracker and tag+tests
2022-01-03 16:08:07 +01:00
Jan Bouwhuis
3ca18922e6
Mqtt rework on value templates ( #62105 )
...
* add MqttValueTemplate class
* support variables at initiation
* pass MqttEntity instead of hass
* Use MqttValueTemplace class for value templates
* make hass en enitity parameters conditional
* remove unused property and remove None assignment
* rename self._attr_value_template
2022-01-03 16:07:40 +01:00
Jan Bouwhuis
061ce0c187
Fix mqtt reloading and rework tests ( #62950 )
...
* Improve mqtt reloading/tests and fix issues
* Cleanup fixture for reloading test
* isort and black remove replaced test_reloadable
2022-01-03 15:14:50 +01:00
Jan Bouwhuis
0dab5e69db
Fix MQTT cover not using tilt_command_template ( #63080 )
2022-01-03 15:13:30 +01:00
Jan Bouwhuis
457ce195dd
Add mqtt entity attributes command templates ( #61937 )
...
* Add entity variables to MqttCommandTemplate
* missing command template update
* make hass and entity conditional parameters
* Add encoding support for publishing
* Revert "Add encoding support for publishing"
This reverts commit b69b9c60ec
.
2022-01-03 15:10:15 +01:00
Jan Bouwhuis
d0c4f0fec4
Add mqtt encoding support for publishing ( #62739 )
...
* encoding support for mqtt publishing - todo tests
* signature allows None values for qos and retain
* common test for mqtt publishing encoding
* better test with command templates
* more tests
* fix tests alarm control panel+tests light basic
* tests light json and template
* add tests vacuum and fix tests light_template
2022-01-03 09:03:47 +01:00
epenet
2cc4d9846b
Add basic type hints to mqtt ( #62875 )
...
* Add basic type hints to mqtt
* Add hints to async_setup_platform
* Add type hint to async_setup_entry
* Fix pylint
* Set correct argument order in climate entity
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 08:53:52 +01:00
GitHub Action
ea0b24a5f0
[ci skip] Translation update
2022-01-03 00:14:23 +00:00
epenet
20150daf1e
Fix incorrect parameter name/hint in mqtt climate ( #63106 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-02 17:06:17 +01:00
epenet
33e926371f
Add init type hints [m] ( #63189 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-02 16:28:14 +01:00
Sebastian Lövdahl
d18f1cc872
Use Platform constants all over the place 2/3 ( #62953 )
2021-12-28 21:23:07 +01:00
epenet
8cc0df7b72
Ensure service calls are typed [k-n] ( #62917 )
...
* Ensure service calls are typed [k-n]
* Ensure service calls are typed in mazda
* Adjust mazda
* Add mazda comment
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-28 14:33:08 +01:00
Dave T
8fd60dbd51
Refactor entity_category str types ( #62790 )
2021-12-27 18:23:08 +01:00
GitHub Action
8c8c7e91a2
[ci skip] Translation update
2021-12-25 00:13:29 +00:00
Erik Montnemery
c1ada1754f
Reject MQTT cover discovery using unsupported tilt_invert_state ( #62680 )
2021-12-23 17:05:52 +01:00
GitHub Action
babd753610
[ci skip] Translation update
2021-12-21 00:15:06 +00:00
epenet
079b7f217f
Use new enums in mqtt ( #61936 )
...
* Use new enums in mqtt
* Fix typo
2021-12-16 15:09:31 +01:00
Jan Bouwhuis
d5defa8995
Support publishing MQTT messages with raw bytes payloads ( #61090 )
...
* correctly publish mqtt ouput
* Additional tests
* Add template test with binary output
* render_outgoing_payload with command templates
* use MqttCommandTemplate helper class
* add tests command_template
* Additional tests
* support pass-through for MqttComandTemplate
* fix bugs
* unify workform always initiate with hass
* clean up
* remove not needed lines
* comment not adding value
2021-12-15 11:28:43 +01:00
GitHub Action
eb345bfdf1
[ci skip] Translation update
2021-12-14 00:13:33 +00:00
epenet
da7c5f4722
Break long lines in discovery_info ( #61431 )
2021-12-10 12:48:47 +01:00
epenet
c05eca1c82
Remove log flooding prevention logic from discovery info ( #61243 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 10:28:26 -10:00
GitHub Action
5258c5fc9c
[ci skip] Translation update
2021-12-07 00:51:52 +00:00
GitHub Action
ecdb18eb0a
[ci skip] Translation update
2021-12-06 00:13:37 +00:00
epenet
b65b25c1bb
Move MqttServiceInfo to init.py ( #60905 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-12-03 19:34:48 +01:00
epenet
358922db56
Use dataclass for HassioServiceInfo ( #60824 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-03 14:05:56 +01:00
Jan Bouwhuis
3307e54363
Add MQTT availability template and encoding ( #60470 )
...
* Add MQTT availability template and encoding
* use generic encoding field
* pylint and cleanup
* remove additional topic check
2021-12-02 10:21:31 +01:00
GitHub Action
de792e3af2
[ci skip] Translation update
2021-12-02 00:13:02 +00:00
Franck Nijhof
16462df451
Add button device classes to MQTT ( #60628 )
2021-11-30 16:08:02 +01:00
Jan Bouwhuis
2a2a20fcb3
Add mqtt sensor configurable state encoding for sensor and binary_sensor platform ( #60447 )
...
* Add mqtt sensor state encoding
* Make encoding attribute not specific to states
* Move encoding attribute to schema base
2021-11-30 14:04:24 +01:00
Raphaël Beamonte
8600b5597a
Add 'trigger' support for MQTT Alarm Control Panel ( #60525 )
...
When configuring an Alarm Control Panel through MQTT discovery, it
was not possible to use the trigger service. This fixes that by making
it available the same way as ARM and DISARM services are.
2021-11-29 14:41:52 +01:00
GitHub Action
3af54d96c7
[ci skip] Translation update
2021-11-28 00:14:19 +00:00
GitHub Action
96313bbbe0
[ci skip] Translation update
2021-11-27 00:12:17 +00:00
GitHub Action
78b47019f9
[ci skip] Translation update
2021-11-26 00:12:49 +00:00
Hypnos
57fd632cd9
Add missing MQTT lock.open ( #60022 )
...
* Add missing MQTT lock.open
from:
https://community.home-assistant.io/t/mqtt-lock-open/232823/13
based on https://github.com/home-assistant/core/pull/48008
* Update homeassistant/components/mqtt/lock.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Update homeassistant/components/mqtt/lock.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Update homeassistant/components/mqtt/lock.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* removed `STATE_OPEN` from tests
* Apply suggestions from code review
* Format code
* Update lock.py
* Update test_lock.py
* Update test_lock.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-11-25 15:54:08 +01:00
Till Skrodzki
635d875b1d
Only accept valid hvac actions sent via mqtt ( #59919 )
...
* Only accept valid hvac actions sent via mqtt
* Only accept valid hvac actions sent via mqtt
* Fix existing action test and remove old one
* Remote None as valid hvac action being accepted
* Change loglevel of wrong hvac action received
2021-11-25 15:53:34 +01:00
GitHub Action
d3c020325b
[ci skip] Translation update
2021-11-25 00:13:33 +00:00
Erik Montnemery
7c3edf24f2
Allow MQTT selects to have a single or no options ( #60281 )
2021-11-24 20:06:12 +01:00
Franck Nijhof
5c443b626a
Use native datetime value in MQTT sensors ( #59923 )
2021-11-23 22:10:14 +01:00
epenet
f6bbdec6cb
Use BaseServiceInfo inheritance in MqttServiceInfo ( #60207 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-23 16:52:33 +01:00
epenet
3b0d984959
Use dataclass for MqttServiceInfo ( #60191 )
...
* Use dataclass for MqttServiceInfo
* Drop test exception
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-23 09:01:40 +01:00
GitHub Action
9e606abb0c
[ci skip] Translation update
2021-11-23 00:13:54 +00:00
GitHub Action
31d4239b64
[ci skip] Translation update
2021-11-22 00:13:02 +00:00
GitHub Action
72b0eb719e
[ci skip] Translation update
2021-11-20 00:12:27 +00:00
GitHub Action
29dc9de08f
[ci skip] Translation update
2021-11-19 00:14:01 +00:00
GitHub Action
9a85c8d894
[ci skip] Translation update
2021-11-18 00:12:48 +00:00
Robert Hillis
16027b9f43
Fix mqtt undefined error ( #59787 )
2021-11-16 17:16:24 +01:00
David Beitey
1bcd62cd32
Add topic_template for mqtt.publish ( #53743 )
...
Co-authored-by: Erik Montnemery <erik@montnemery.com>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-11-16 16:13:54 +01:00
epenet
4387bbfb94
Adjust async_step_mqtt signature for strict typing ( #59761 )
...
* Add MqttServiceInfo
* Adjust async_step_mqtt signature
* Adjust async_step_mqtt signature
* Adjust components
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-16 13:30:38 +01:00
GitHub Action
3f2b1fa952
[ci skip] Translation update
2021-11-12 00:12:35 +00:00
GitHub Action
34bc1298aa
[ci skip] Translation update
2021-11-11 00:15:23 +00:00
Erik Montnemery
b5ce84cd89
Add MQTT button ( #59348 )
2021-11-09 12:04:14 +01:00
Erik Montnemery
7b9715bec3
Bump paho-mqtt to 1.6.1 ( #59339 )
2021-11-08 18:16:44 +01:00
Damien Duboeuf
67c2747027
Add MQTT object_id option ( #58728 )
...
* Add MQTT object_id option
* Add MQTT object_id option
* Add MQTT object_id option
* Add MQTT object_id option - Fix light and vacuum
* Add MQTT object_id option - Fix light and vacuum
* Add MQTT object_id option - Fix lock
* Add MQTT object_id option - Fix device
* Add MQTT object_id option - Fix device
* Update tests/components/mqtt/test_discovery.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Change deprecated method
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-11-08 14:02:18 +01:00
GitHub Action
e35b83081e
[ci skip] Translation update
2021-11-08 00:12:31 +00:00
GitHub Action
332a571bb4
[ci skip] Translation update
2021-11-07 00:12:38 +00:00
Jan Bouwhuis
c3fc19915e
Mqtt fan fail deprecated options for classic speeds ( #58992 )
...
* Fail deprecated options
* new removed validator
* correct module_name - add tests
* Add test cant find module cv.removed
* module name from stack+1
* Remove error from log. Just throw.
* assert on thrown exception text
* cleanup formatting remove KeyStyleAdapter
* format the replacement_key and update test
* deprecated vs removed - add raise_if_present opt
* doc string update
* is deprecated
2021-11-04 17:54:27 +01:00
GitHub Action
c9c95165e4
[ci skip] Translation update
2021-11-04 00:12:21 +00:00
Jan Bouwhuis
0c4863198e
Add command_template to MQTT number platform ( #58949 )
2021-11-02 18:21:49 +01:00
Chris Browet
2df1ba2346
Add device_class to MQTT switch ( #58931 )
2021-11-02 17:40:05 +01:00
Jan Bouwhuis
339117aceb
Add command_template to mqtt select platform ( #58934 )
2021-11-02 17:33:23 +01:00
GitHub Action
0a94badb72
[ci skip] Translation update
2021-11-02 00:12:41 +00:00
GitHub Action
4e419d8c6f
[ci skip] Translation update
2021-11-01 00:13:04 +00:00
Marc Mueller
4c68662612
Use assignment expressions 34 ( #58823 )
2021-10-31 19:01:16 +01:00
Marc Mueller
b1d49b3b66
Use assignment expressions 29 ( #58713 )
2021-10-30 16:31:43 +02:00
Marc Mueller
887d04be60
Use assignment expressions 32 ( #58716 )
2021-10-30 16:30:13 +02:00
Erik Montnemery
f3bd13d179
Fix regression in MQTT discovery ( #58684 )
...
* Fix regression in MQTT discovery
* Update test
2021-10-29 15:59:16 +02:00
Erik Montnemery
0456a896e3
Avoid service call in MQTT async_publish function ( #58441 )
...
* Avoid service call in MQTT async_publish function
* Tweak
* Fix integrations + tests
2021-10-28 08:13:32 +02:00
Erik Montnemery
41e14c4871
Correct changes in Allow extra keys in MQTT discovery messages ( #58534 )
2021-10-27 16:33:02 +02:00
Erik Montnemery
640a7fee9d
Allow extra keys in MQTT discovery messages ( #58390 )
...
* Allow extra keys in MQTT discovery messages
* Remove extra keys
2021-10-25 13:47:06 +02:00
epenet
a8a8b532d0
Use DeviceInfo in mqtt ( #58389 )
...
* Use DeviceInfo in mqtt
* Updates for mypy
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-10-25 13:46:09 +02:00
Franck Nijhof
027e167d95
Add support for unit of measurement in MQTT number platform ( #58343 )
2021-10-25 09:44:43 +02:00
Maciej Bieniek
0aa06d22f1
Move `configuration_url` abbreviation to MQTT `DEVICE_ABBREVIATIONS` const ( #58313 )
2021-10-24 11:35:46 +02:00
GitHub Action
f9d985553c
[ci skip] Translation update
2021-10-22 00:14:10 +00:00
Marc Mueller
487fa0a905
Use assignment expressions 20 ( #57969 )
2021-10-20 20:31:00 +02:00
Jan Bouwhuis
58569a58a9
MQTT Alarm control panel - Enable remote code validation ( #57764 )
...
* Enable remote code validation
* Update homeassistant/components/mqtt/alarm_control_panel.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-10-19 12:07:38 +02:00
Marc Mueller
4f8148f9ea
Use assignment expressions 07 ( #57787 )
2021-10-17 20:24:34 +02:00
GitHub Action
c76e15149c
[ci skip] Translation update
2021-10-17 00:12:27 +00:00
Erik Montnemery
1eebe45154
Add support for entity categories to MQTT entities ( #57656 )
...
* Add support for entity categories to MQTT entities
* Improve test
* Apply suggestions from code review
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
* Update homeassistant/components/mqtt/mixins.py
Co-authored-by: Paul Monigatti <paulmonigatti@users.noreply.github.com>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Paul Monigatti <paulmonigatti@users.noreply.github.com>
2021-10-15 14:28:30 +02:00
Franck Nijhof
eed9f67402
Add service configuration URL to MQTT ( #57731 )
2021-10-14 18:27:40 -07:00
Jan Bouwhuis
879144b48d
MQTT rework constants ( #57529 )
...
* reference CONF_TOPIC to .const
* Organize common mqtt constants
2021-10-12 11:26:38 +02:00
GitHub Action
10b62370ff
[ci skip] Translation update
2021-10-12 00:12:28 +00:00
Jan Bouwhuis
a36a765352
Allow MQTT discovery availability shortcut ( #57479 )
...
* replace base in availability topic
* add tests for availability shortcuts - fix import
* group constants
* simplified loop
* Moving constants to .const
* rename value to topic
* move CONF_TOPIC to .const
* move CONF_AVAILABILITY to .const
* remove check for string
* Silently ignore if no config topic is found.
* CONF_TOPIC should be required
2021-10-11 23:37:31 +02:00
Erik Montnemery
7223c59e79
Allow resetting an MQTT number ( #57161 )
...
* Allow resetting an MQTT number
* Add abbreviation
2021-10-07 13:54:34 +02:00
GitHub Action
8fea54fff7
[ci skip] Translation update
2021-10-07 00:10:57 +00:00
Paulus Schoutsen
eb9b9c57a4
[ci skip] Translation update
2021-10-04 08:38:24 -07:00
GitHub Action
f42c2f5170
[ci skip] Translation update
2021-10-02 12:59:05 +00:00
Marc Mueller
364767ff22
Import Callable from collections.abc (4) ( #56778 )
2021-09-29 16:15:36 +02:00
Erik Montnemery
4d7e3cde5a
Minor cleanup and test coverage improvement for MQTT ( #55265 )
2021-09-27 17:45:52 +02:00
GitHub Action
9da3fa5d75
[ci skip] Translation update
2021-09-07 00:11:29 +00:00
Ville Skyttä
b10fc89a6b
Automation trigger info type hint improvements ( #55402 )
...
* Make automation trigger info a TypedDict
* zwave_js trigger type hint fixes
* Remove redundant automation trigger info field presence checks
* Use async_initialize_triggers in mqtt and tasmota device_trigger tests
2021-09-04 02:25:51 +02:00
GitHub Action
19dcb19d07
[ci skip] Translation update
2021-09-04 00:13:17 +00:00
GitHub Action
368cac7e5d
[ci skip] Translation update
2021-08-31 00:17:01 +00:00
Erik Montnemery
18c03e2f8d
Fix race in MQTT sensor when last_reset_topic is configured ( #55463 )
2021-08-30 23:32:35 +02:00