Migrate to async_get_current_platform everywhere (#50034)
This commit is contained in:
parent
672d2e332f
commit
2ed386f9e6
69 changed files with 71 additions and 76 deletions
|
@ -104,7 +104,7 @@ async def async_setup_platform(
|
|||
]
|
||||
)
|
||||
|
||||
platform = entity_platform.current_platform.get()
|
||||
platform = entity_platform.async_get_current_platform()
|
||||
|
||||
platform.async_register_entity_service(
|
||||
SERVICE_SET_VICARE_MODE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue