-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
No state detection available for the moment
- Loading branch information
Showing
10 changed files
with
265 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
DOMAIN = 'smartthinq_washer' | ||
DOMAIN = "smartthinq_washer" | ||
|
||
CONF_LANGUAGE = "language" | ||
CONF_OAUTH_URL = "outh_url" | ||
CONF_OAUTH_USER_NUM = "outh_user_num" | ||
CONF_USE_API_V2 = "use_api_v2" | ||
|
||
ATTR_CONFIG = "config" | ||
CLIENT = "client" | ||
CONF_LANGUAGE = 'language' | ||
LGE_DEVICES = 'lge_devices' | ||
LGE_DEVICES = "lge_devices" | ||
|
||
SMARTTHINQ_COMPONENTS = [ | ||
'sensor', | ||
"sensor", | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,20 @@ | ||
""" | ||
Support for LG Smartthinq device. | ||
""" | ||
import uuid | ||
|
||
def as_list(obj): | ||
"""Wrap non-lists in lists. | ||
If `obj` is a list, return it unchanged. Otherwise, return a | ||
single-element list containing it. | ||
""" | ||
|
||
if isinstance(obj, list): | ||
return obj | ||
else: | ||
return [obj] | ||
|
||
def gen_uuid(): | ||
return str(uuid.uuid4()) | ||
|
Oops, something went wrong.