Skip to content

Commit

Permalink
Add missing docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
emontnemery committed Sep 16, 2018
1 parent bff18a5 commit 8e1bb40
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions homeassistant/components/mqtt/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ async def async_device_message_received(topic, payload, qos):
pattern = r'(?:(?<=^)|(?<=_))[^\W_]+(?=_|$)'

def expand(matchobj):
"""Helper to expand a possibly abbreviated word."""
abbreviation = matchobj.group(0)
if abbreviation in ABBREVIATIONS:
return ABBREVIATIONS[abbreviation]
Expand Down

0 comments on commit 8e1bb40

Please sign in to comment.