Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions homeassistant/components/sensor/moon.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/sensor.moon/
"""
import asyncio
import logging

import voluptuous as vol
Expand All @@ -26,8 +25,8 @@
})


@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 Moon sensor."""
name = config.get(CONF_NAME)

Expand Down Expand Up @@ -71,8 +70,7 @@ def icon(self):
"""Icon to use in the frontend, if any."""
return ICON

@asyncio.coroutine
def async_update(self):
async def async_update(self):
"""Get the time and updates the states."""
from astral import Astral

Expand Down