Migrate to async_get_current_platform everywhere (#50034)

This commit is contained in:
Franck Nijhof 2021-05-03 18:34:28 +02:00 committed by GitHub
parent 672d2e332f
commit 2ed386f9e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
69 changed files with 71 additions and 76 deletions

View file

@ -97,7 +97,7 @@ async def async_setup_entry(
# connect to register any further components
async_dispatcher_connect(hass, DISPATCH_CONTROLLER_DISCOVERED, init_controller)
platform = entity_platform.current_platform.get()
platform = entity_platform.async_get_current_platform()
platform.async_register_entity_service(
IZONE_SERVICE_AIRFLOW_MIN,
IZONE_SERVICE_AIRFLOW_SCHEMA,