GitHub Action
f3b3193f7a
[ci skip] Translation update
2022-11-25 00:24:19 +00:00
Marc Mueller
c0425619e2
Fix round typing [mqtt] ( #82629 )
2022-11-24 14:39:01 +01:00
Jan Bouwhuis
8a8732f0bc
Strict type hints for MQTT integration ( #82317 )
...
* Strict type hints for MQTT integration
* Fix errors
* Additional corrections
* Use cv.template to avoid untyped calls
* Enable strict typing policy for MQTT integration
* Use ignore[no-untyped-call]
* Use # type: ignore[unreachable]
* Correct cast
* Refactor getting discovery_payload
* Remove unused type ignore comments
2022-11-24 08:25:44 +01:00
GitHub Action
33d391a110
[ci skip] Translation update
2022-11-24 00:26:32 +00:00
Jan Bouwhuis
23bc39b7f4
Add type hints on `Template().__init__()` ( #82574 )
2022-11-23 20:26:55 +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
32d68f375b
Add Mqtt WebSockets support ( #82078 )
...
* Add Mqtt WebSockets support
* Fix tests
* Add testing websockets options
* Add tests transport settings
* Do not use templates for ws_headers
* Use json helper - small corrections
2022-11-23 15:03:31 +01:00
GitHub Action
eaf6d43508
[ci skip] Translation update
2022-11-23 00:26:26 +00:00
epenet
bf3c6e5f58
Enforce VacuumEntityFeature ( #82466 )
2022-11-22 07:27:27 +01:00
epenet
ab26ea06b9
Enforce UpdateEntityFeature ( #82465 )
2022-11-22 07:16:53 +01:00
epenet
a225fc456f
Enforce LockEntityFeature ( #82461 )
2022-11-22 07:15:11 +01:00
epenet
7f1e1ed1d8
Enforce LightEntityFeature ( #82460 )
2022-11-22 07:14:47 +01:00
epenet
12cb17620e
Enforce FanEntityFeature ( #82458 )
...
* Enforce FanEntityFeature
* Adjust pylint
2022-11-22 07:13:54 +01:00
epenet
34607d4410
Enforce CoverEntityFeature ( #82457 )
...
* Enforce CoverEntityFeature
* Adjust pylint
2022-11-22 07:09:19 +01:00
epenet
48cc3071bb
Enforce ClimateEntityFeature ( #82329 )
2022-11-22 07:08:53 +01:00
Jan Bouwhuis
982e75a15f
Improve type hints MQTT light schema template ( #82211 )
...
* Improve type hints MQTT light schema template
* A few improvements
* Follow up comments
2022-11-21 09:20:11 +01:00
GitHub Action
3bea04e387
[ci skip] Translation update
2022-11-21 00:26:41 +00:00
GitHub Action
fe5246fb6f
[ci skip] Translation update
2022-11-19 00:26:11 +00:00
Jan Bouwhuis
fb909d694f
Improve type hints MQTT light schema json ( #82208 )
...
* Improve type hints schema json
* Add hint for brightness
* Follow up comments
* Follow up missed comments
* Correct hint on flash arg
* hints on one line
2022-11-18 12:12:27 +01:00
GitHub Action
5119005a8d
[ci skip] Translation update
2022-11-18 00:29:16 +00:00
Jan Bouwhuis
7c2e7863d2
Remove legacy YAML support from MQTT ( #82102 )
2022-11-17 22:55:31 +01:00
Jan Bouwhuis
b717da879f
Add support for Mqtt protocol version 5 ( #82260 )
2022-11-17 21:12:27 +01:00
epenet
3be750812d
Adjust type hints for UpdateEntityFeature ( #82268 )
2022-11-17 15:17:50 +01:00
epenet
295cd0143c
Adjust type hints for SirenEntityFeature ( #82266 )
2022-11-17 15:06:26 +01:00
epenet
2453f95b24
Adjust HumidifierEntity type hints ( #82248 )
2022-11-17 10:58:46 +01:00
Jan Bouwhuis
3d00923665
Improve MQTT type hints / refactor part 9 - light ( #81151 )
...
* Improve type hints light base
* improve type hints light schema basic
* Improve type hints light schema json
* Use MQTT Template models with light template
* Addtional type hints for template light
* Improve template hints for schema template
* Use strict type hints for templates
* MyPy corrections
* Follow up comments
* Follow up comments
* Revert changes schema_json
* Revert changes schema template
* Hints setup_entity_json and setup_entity_template
* Remove type hint on setup_entity JSON
2022-11-17 10:22:25 +01:00
Jan Bouwhuis
f60850586e
Remove `b64` encoding work-a-round for MQTT camera ( #82244 )
2022-11-17 10:11:25 +01:00
epenet
17573196c8
Adjust type hints for CoverEntityFeature ( #82238 )
2022-11-17 08:39:44 +01:00
GitHub Action
c999953514
[ci skip] Translation update
2022-11-17 00:26:24 +00:00
epenet
e85e79052b
Improve climate type hints for supported_features ( #82223 )
2022-11-16 23:07:48 +02:00
epenet
f952b74b74
Adjust type hints for AlarmControlPanelEntityFeature ( #82186 )
2022-11-16 17:08:42 +01:00
epenet
00f4933e72
Import tag from homeassistant.components ( #82161 )
2022-11-16 07:09:46 +01:00
Jan Bouwhuis
7932864e00
Always update attributes on an update for MQTT update ( #82139 )
2022-11-15 18:43:01 +01:00
Jan Bouwhuis
285c61c0d7
Add TagProtocol as type hint in MQTT tag ( #82134 )
2022-11-15 16:54:39 +01:00
Jan Bouwhuis
6975186f2f
Improve MQTT type hints / refactor part 10 - vacuum ( #81253 )
...
* Improve type hints vacuum __init__ and schema
* Improve type hints and refactor templates legacy
* Improve type hints state vacuum
* Add hint for template parameters
* Apply suggestions from code review
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Some corrections
* Remove stale constant
* Use bitwise and
* Follow-up comment
* Remove incorrect type hint
* Remove asserts
* Cleanup asserts and reduce code
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2022-11-15 12:48:02 +01:00
GitHub Action
83a6012f80
[ci skip] Translation update
2022-11-15 00:26:42 +00:00
Aarni Koskela
bbda122c99
Fix mqtt typo ( #82086 )
...
mqtt: fix "certiticate" typo
2022-11-14 16:22:23 +01:00
GitHub Action
a6a3bf261d
[ci skip] Translation update
2022-11-12 00:28:24 +00:00
Jan Bouwhuis
7500d0c61c
Refactor MQTT_WILL_BIRTH_SCHEMA ( #81879 )
...
* Refactor MQTT_WILL_BIRTH_SCHEMA
* Refactor and move birth/will validation to utils
* Simplify birth will validation
2022-11-10 15:24:56 +01:00
GitHub Action
8b4dbbe593
[ci skip] Translation update
2022-11-10 00:27:41 +00:00
GitHub Action
dcf68d768e
[ci skip] Translation update
2022-11-09 00:27:20 +00:00
Jan Bouwhuis
b364ef98a0
Use `_attr_` for MQTT vacuum ( #81534 )
...
* Use `_attr_` for MQTT vacuum
* Remove unneeded properties
* Follow-up comment
* Remove default value
2022-11-08 18:48:08 +01:00
Jan Bouwhuis
7d768dc3a6
Improve MQTT type hints / refactor part 7 - trigger ( #81019 )
...
* Improve typing trigger
* Improve hints on templates
* Use new sentinel for template
* Follow-up comment
2022-11-08 17:02:06 +01:00
Aarni Koskela
88a7c76739
Fix late-import paho ( #81791 )
...
fix: late-import MQTTMessage
`paho-mqtt` is not listed in main requirements and is imported early by `conftest`.
Import it late to avoid an ImportError.
Split out from #81678 .
2022-11-08 16:16:31 +01:00
Jan Bouwhuis
4293c88fb6
Improve MQTT type hints part 6 ( #81001 )
...
* Improve typing siren
* Improve typing switch
* Set siren type hints at class level
* Set switch type hints at class level
* Follow up comment
* Improve hints on siren templates
* Another cleanup for siren
* Follow up comment
* Follow up comment
2022-11-08 13:11:45 +01:00
Jan Bouwhuis
47dba6f6bc
Improve MQTT type hints part 5 ( #80979 )
...
* Improve typing scene
* Improve typing select
* Improve typing sensor
* move expire_after - and class level attrs
* Follow up comment
* Solve type confict
* Remove stale sentinel const
* Update homeassistant/components/mqtt/sensor.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Make _expire_after a class attribute
* Code styling
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2022-11-08 12:55:41 +01:00
Jan Bouwhuis
d66d079330
Use `_attr_` for MQTT light ( #81465 )
...
* Schema basic
* Schema json
* Schema template
* add color_mode - follow up comments
* Fix regression
* Follow up comments 2
* Fix mypy errors
* Update homeassistant/components/mqtt/light/schema_template.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2022-11-08 10:16:05 +01:00
Jan Bouwhuis
8c0a7b9d7f
Add type hints for MQTT tag ( #81495 )
...
* Improve typing tag
* Additional type hints for tag platform
* Follow up comment tag
* Folow up comments
* Revert comment removal
2022-11-08 09:24:16 +01:00
Jan Bouwhuis
88faf33cb8
Improve type hints for MQTT climate ( #81396 )
...
* Improve typing climate
* Move climate type hints to class level
* Apply suggestions from code review
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* remove stale command after applying suggestions
* cleanup
* Update homeassistant/components/mqtt/climate.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2022-11-08 09:17:03 +01:00
GitHub Action
785cf0e29c
[ci skip] Translation update
2022-11-08 00:26:39 +00:00