Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion homeassistant/components/calendar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
from homeassistant.helpers.template import DATE_STR_FORMAT
from homeassistant.util import dt


_LOGGER = logging.getLogger(__name__)

DOMAIN = 'calendar'
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/calendar/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,6 @@ class DemoGoogleCalendar(CalendarEventDevice):
"""Representation of a Demo Calendar element."""

def __init__(self, hass, calendar_data, data):
"""Initalize Google Calendar but without the API calls."""
"""Initialize Google Calendar but without the API calls."""
self.data = calendar_data
super().__init__(hass, data)
1 change: 1 addition & 0 deletions homeassistant/components/mysensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ def __init__(self, gateway, optimistic, device):
optimistic (bool): Send values to actuators without feedback state.
device (str): Device configured as gateway.
__initialised (bool): True if GatewayWrapper is initialised.

"""
self._wrapped_gateway = gateway
self.platform_callbacks = []
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/plant.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class Plant(Entity):
}

def __init__(self, name, config):
"""Initalize the Plant component."""
"""Initialize the Plant component."""
self._config = config
self._sensormap = dict()
for reading, entity_id in config['sensors'].items():
Expand Down
3 changes: 1 addition & 2 deletions homeassistant/components/sensor/knx.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@

def setup_platform(hass, config, add_entities, discovery_info=None):
"""Set up the KNX Sensor platform."""
# Add KNX Temperature Sensors
# KNX Datapoint 9.001 DPT_Value_Temp
if config[CONF_TYPE] == TEMPERATURE:
minimum_value, maximum_value = \
Expand Down Expand Up @@ -70,7 +69,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):


def update_and_define_min_max(config, minimum_default, maximum_default):
"""Determinate a min/max value defined in the configuration."""
"""Determine a min/max value defined in the configuration."""
minimum_value = minimum_default
maximum_value = maximum_default
if config.get(CONF_MINIMUM):
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/switch/netio.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class NetioSwitch(SwitchDevice):
"""Provide a Netio linked switch."""

def __init__(self, netio, outlet, name):
"""Initalize the Netio switch."""
"""Initialize the Netio switch."""
self._name = name
self.outlet = outlet
self.netio = netio
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/switch/orvibo.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def __init__(self, name, s20):

@property
def should_poll(self):
"""Polling is needed."""
"""Return the polling state."""
return True

@property
Expand Down
4 changes: 2 additions & 2 deletions homeassistant/components/switch/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
req = yield from websession.get(resource)

if req.status >= 400:
_LOGGER.error('Got non-ok response from resource: %s', req.status)
_LOGGER.error("Got non-ok response from resource: %s", req.status)
return False

except (TypeError, ValueError):
Expand Down Expand Up @@ -95,7 +95,7 @@ def __init__(self, hass, name, resource, body_on, body_off,

@property
def name(self):
"""The name of the switch."""
"""Return the name of the switch."""
return self._name

@property
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/switch/wemo.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def __init__(self, device):
wemo.SUBSCRIPTION_REGISTRY.on(self.wemo, None, self._update_callback)

def _update_callback(self, _device, _type, _params):
"""Called by the Wemo device callback to update state."""
"""Update the state by the Wemo device."""
_LOGGER.info("Subscription update for %s", _device)
updated = self.wemo.subscription_update(_type, _params)
self._update(force_update=(not updated))
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/telegram_bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def async_setup_platform(p_type, p_config=None, discovery_info=None):

@asyncio.coroutine
def async_platform_discovered(platform, info):
"""Callback to load a platform."""
"""Handle the loading of a platform."""
yield from async_setup_platform(platform, discovery_info=info)

discovery.async_listen_platform(hass, DOMAIN, async_platform_discovered)
Expand Down