Skip to content

Commit d740b90

Browse files
committed
Fix docstrings and typos
1 parent 102df3b commit d740b90

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/developers/platform_example_light.markdown

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
6464
add_devices(AwesomeLight(light) for light in hub.lights())
6565
6666
class AwesomeLight(Light):
67-
"""Represents an AwesomeLight in Home Assistant."""
67+
"""Representation an AwesomeLight in Home Assistant."""
6868
6969
def __init__(self, light):
7070
"""Initialize an AwesomeLight."""
7171
self._light = light
7272
7373
@property
7474
def name(self):
75-
"""Return the display name of this light"""
75+
"""Return the display name of this light."""
7676
return self._light.name
7777
7878
@property
@@ -86,7 +86,7 @@ class AwesomeLight(Light):
8686
8787
@property
8888
def is_on(self):
89-
"""If light is on."""
89+
"""Return true if light is on."""
9090
return self._light.is_on()
9191
9292
def turn_on(self, **kwargs):
@@ -105,7 +105,7 @@ class AwesomeLight(Light):
105105
def update(self):
106106
"""Fetch new state data for this light.
107107
108-
This is the only method that should fetch new data for Home Assitant.
108+
This is the only method that should fetch new data for Home Assistant.
109109
"""
110110
self._light.update()
111111
```

0 commit comments

Comments
 (0)