mirror of
https://github.com/home-assistant/core.git
synced 2025-05-02 13:17:53 +00:00
Update syntax (#14771)
This commit is contained in:
parent
875e05ff38
commit
1ce4c2092a
@ -4,7 +4,6 @@ Support for displaying the current version of Home Assistant.
|
||||
For more details about this platform, please refer to the documentation at
|
||||
https://home-assistant.io/components/sensor.version/
|
||||
"""
|
||||
import asyncio
|
||||
import logging
|
||||
|
||||
import voluptuous as vol
|
||||
@ -23,8 +22,8 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||
})
|
||||
|
||||
|
||||
@asyncio.coroutine
|
||||
def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
|
||||
async def async_setup_platform(
|
||||
hass, config, async_add_devices, discovery_info=None):
|
||||
"""Set up the Version sensor platform."""
|
||||
name = config.get(CONF_NAME)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user