hass-core/homeassistant/components/mqtt/light
epenet a202588fd2
Add return type to json_loads ()
* Add JSON type definitions

* Sample use

* Keep mutable for a follo-up PR (avoid dead code)

* Use list/dict

* Remove JsonObjectType

* Remove reference to Union

* Cleanup

* Improve rest

* Rename json_dict => json_data

* Add docstring

* Add type hint to json_loads

* Add cast

* Move type alias to json helpers

* Cleanup

* Create and use json_loads_object

* Make error more explicit and add tests

* Use JsonObjectType in conversation

* Remove quotes
2023-02-07 17:21:55 +01:00
..
__init__.py Cleanup remains of legacy validation MQTT light () 2023-02-07 14:52:40 +01:00
schema.py Move MQTT CONF_SCHEMA from light and vacuum to .const () 2022-10-29 10:22:59 +02:00
schema_basic.py Cleanup remains of legacy validation MQTT light () 2023-02-07 14:52:40 +01:00
schema_json.py Add return type to json_loads () 2023-02-07 17:21:55 +01:00
schema_template.py Cleanup remains of legacy validation MQTT light () 2023-02-07 14:52:40 +01:00