hass-core/homeassistant/generated
Lektri.co 5bd736029f
Add lektrico integration (#102371)
* Add Lektrico Integration

* Make the changes proposed by Lash-L: new coordinator.py, new entity.py; use: translation_key, last_update_sucess, PlatformNotReady; remove: global variables

* Replace FlowResult with ConfigFlowResult and add tests.

* Remove unused lines.

* Remove Options from condif_flow

* Fix ruff and mypy.

* Fix CODEOWNERS.

* Run python3 -m script.hassfest.

* Correct rebase mistake.

* Make modifications suggested by emontnemery.

* Add pytest fixtures.

* Remove meaningless patches.

* Update .coveragerc

* Replace CONF_FRIENDLY_NAME with CONF_NAME.

* Remove underscores.

* Update tests.

* Update test file with is and no config_entries. .

* Set serial_number in DeviceInfo and add return type of the async_update_data to DataUpdateCoordinator.

* Use suggested_unit_of_measurement for KILO_WATT and replace Any in value_fn (sensor file).

* Add device class duration to charging_time sensor.

* Change raising  PlatformNotReady to raising IntegrationError.

* Test the unique id of the entry.

* Rename PF Lx with Power factor Lx and remove PF from strings.json.

* Remove comment.

* Make state and limit reason sensors to be enum sensors.

* Use result variable to check unique_id in test.

* Remove CONF_NAME from entry and __init__ from LektricoFlowHandler.

* Remove session parameter from LektricoDeviceDataUpdateCoordinator.

* Use config_entry: ConfigEntry in coordinator.

* Replace Connected,NeedAuth with Waiting for Authentication.

* Use lektricowifi 0.0.29.

* Use lektricowifi 0.0.39

* Use lektricowifi 0.0.40

* Use lektricowifi 0.0.41

* Replace hass.data with entry.runtime_data

* Delete .coveragerc

* Restructure the user step

* Fix tests

* Add returned value of _async_update_data to class DataUpdateCoordinator

* Use hw_version at DeviceInfo

* Remove a variable

* Use StateType

* Replace friendly_name with device_name

* Use sentence case in translation strings

* Uncomment and fix test_discovered_zeroconf

* Add type LektricoConfigEntry

* Remove commented code

* Remove the type of coordinator in sensor async_setup_entry

* Make zeroconf test end in ABORT, not FORM

* Remove all async_block_till_done from tests

* End test_user_setup_device_offline with CREATE_ENTRY

* Patch the full Device

* Add snapshot tests

* Overwrite the type LektricoSensorEntityDescription outside of the constructor

* Test separate already_configured for zeroconf

---------

Co-authored-by: mihaela.tarjoianu <mihaela.tarjoianu@scada.ro>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-08-30 13:20:15 +02:00
..
__init__.py Enable strict typing for zeroconf (#48450) 2021-03-30 06:48:04 -10:00
amazon_polly.py Automatically generate Amazon Polly list of voices and regions (#119198) 2024-08-22 15:36:11 +02:00
application_credentials.py Split august and yale integrations (#124677) 2024-08-28 17:46:03 +02:00
bluetooth.py Integration for IronOS (Pinecil V2) soldering irons (#120802) 2024-07-29 11:44:01 +02:00
config_flows.py Add lektrico integration (#102371) 2024-08-30 13:20:15 +02:00
countries.py Improve typing via hassfest serializer (#117382) 2024-05-22 08:22:18 +02:00
currencies.py Adjust docstring on hassfest generated files (#89080) 2023-03-03 11:34:20 +01:00
dhcp.py Split august and yale integrations (#124677) 2024-08-28 17:46:03 +02:00
integrations.json Add lektrico integration (#102371) 2024-08-30 13:20:15 +02:00
languages.py Add Macedonian language (#122768) 2024-07-29 14:49:34 +02:00
microsoft_tts.py Scrape Microsoft TTS supported languages (#91988) 2023-05-25 10:46:34 +02:00
mqtt.py Add ESPhome discovery via MQTT (#116499) 2024-05-10 13:32:42 +02:00
ssdp.py Add newer models to unifi integrations discovery (#120688) 2024-06-27 19:20:37 +02:00
usb.py Support the Home Assistant Connect ZBT-1 (#114213) 2024-03-27 18:20:48 +01:00
zeroconf.py Add lektrico integration (#102371) 2024-08-30 13:20:15 +02:00