You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
version: 1
devices:
Test Cover: &ref_settings
- platform: cover
initial_value: 'closed'
open_close_duration: 5
open_close_tick: 1
Test Cover abc: *ref_settings
which is supposed to produce same result.
But it gives an error:
No covers are created.
There is an error in Log:
2024-08-23 19:36:40.903 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry imported - virtual for virtual
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/virtual/init.py", line 149, in async_setup_entry
await vcfg.async_load()
File "/config/custom_components/virtual/cfg.py", line 306, in async_load
platform = entity.pop(CONF_PLATFORM)
^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'platform'
The text was updated successfully, but these errors were encountered:
Consider this code:
Trying to add these covers:
![изображение](https://private-user-images.githubusercontent.com/71872483/361001118-297c38e0-4afc-4409-8b4d-243a128f6969.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MDM0OTQsIm5iZiI6MTczOTYwMzE5NCwicGF0aCI6Ii83MTg3MjQ4My8zNjEwMDExMTgtMjk3YzM4ZTAtNGFmYy00NDA5LThiNGQtMjQzYTEyOGY2OTY5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDA3MDYzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVhMDQwYWMwYzAwNzJhZmFlNzZjMWU1MTRiZDc5ODJkZTJiNzM3YzUxZTdlYmVlYTFlMTZkMmNkM2IxMzkxY2ImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.9R9v1ZUX6Z78Ft7MMVP7boB15GvrDcDQuFcxiQ7TyZo)
Seems that 2 covers are created properly:
![изображение](https://private-user-images.githubusercontent.com/71872483/361001184-fbd58020-8a9b-4a5d-861b-21518f7cf7b0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MDM0OTQsIm5iZiI6MTczOTYwMzE5NCwicGF0aCI6Ii83MTg3MjQ4My8zNjEwMDExODQtZmJkNTgwMjAtOGE5Yi00YTVkLTg2MWItMjE1MThmN2NmN2IwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDA3MDYzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRjNzI0ZTA0YTE3MmVmNjgxMWNmYWY1MzNiOTZlYTA3NGRmM2Q3MzEzMTk3NTc2ZTkzYmNkZjI2OWRjNzE3MWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0._DRZ0ut1dtw8nvUw2nCkoDsj0_Wa6QCb4hcwTX5nOE8)
And no errors/warnings in Log.
Then consider this code:
which is supposed to produce same result.
![изображение](https://private-user-images.githubusercontent.com/71872483/361001434-e99335cc-768b-43a8-9752-da7fc607bfdd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MDM0OTQsIm5iZiI6MTczOTYwMzE5NCwicGF0aCI6Ii83MTg3MjQ4My8zNjEwMDE0MzQtZTk5MzM1Y2MtNzY4Yi00M2E4LTk3NTItZGE3ZmM2MDdiZmRkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDA3MDYzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTEwNDA3OTJjMzNmMzQzZDdmMDJkNmU0Y2M5YzFlYzNlMjFlOWExNGM5YWNkNTAxOGQ5MmYyMTFkOGJhZjE3M2ImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Qq5Crsl8wxI1kuc1V1mNK-u8Q1KLlweaVivfQiDu-ZM)
But it gives an error:
No covers are created.
There is an error in Log:
2024-08-23 19:36:40.903 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry imported - virtual for virtual
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/virtual/init.py", line 149, in async_setup_entry
await vcfg.async_load()
File "/config/custom_components/virtual/cfg.py", line 306, in async_load
platform = entity.pop(CONF_PLATFORM)
^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'platform'
The text was updated successfully, but these errors were encountered: