|
1 |
| -NAME = 'zaptec' |
2 |
| -VERSION = '0.0.4' |
3 |
| -ISSUEURL = 'https://github.com/custom-components/zaptec/issues' |
| 1 | +NAME = "zaptec" |
| 2 | +VERSION = "0.0.5" |
| 3 | +ISSUEURL = "https://github.com/custom-components/zaptec/issues" |
4 | 4 |
|
5 | 5 | STARTUP = """
|
6 | 6 | -------------------------------------------------------------------
|
|
10 | 10 | If you have any issues with this you need to open an issue here:
|
11 | 11 | {issueurl}
|
12 | 12 | -------------------------------------------------------------------
|
13 |
| -""".format(name=NAME, version=VERSION, issueurl=ISSUEURL) |
| 13 | +""".format( |
| 14 | + name=NAME, version=VERSION, issueurl=ISSUEURL |
| 15 | +) |
14 | 16 |
|
15 |
| -DOMAIN = 'zaptec' |
| 17 | +DOMAIN = "zaptec" |
16 | 18 | OBSERVATIONS_REMAPS = {}
|
17 | 19 | WANTED_ATTRIBUTES = []
|
18 |
| -CHARGE_MODE_MAP = {'0': ['unknown', 'mdi:help-rhombus-outline'], |
19 |
| - '1': ['disconnected', 'mdi:power-plug-off'], |
20 |
| - '2': ['waiting', 'mdi:power-sleep'], |
21 |
| - '3': ['charging', 'mdi:power-plug'], |
22 |
| - '5': ['charge_done', 'mdi:battery-charging-100']} |
| 20 | +CHARGE_MODE_MAP = { |
| 21 | + "0": ["unknown", "mdi:help-rhombus-outline"], |
| 22 | + "1": ["disconnected", "mdi:power-plug-off"], |
| 23 | + "2": ["waiting", "mdi:power-sleep"], |
| 24 | + "3": ["charging", "mdi:power-plug"], |
| 25 | + "5": ["charge_done", "mdi:battery-charging-100"], |
| 26 | +} |
23 | 27 |
|
24 |
| -TOKEN_URL = 'https://api.zaptec.com/oauth/token' |
25 |
| -API_URL = 'https://api.zaptec.com/api/' |
26 |
| -CONST_URL = 'https://api.zaptec.com/api/constants' |
| 28 | +TOKEN_URL = "https://api.zaptec.com/oauth/token" |
| 29 | +API_URL = "https://api.zaptec.com/api/" |
| 30 | +CONST_URL = "https://api.zaptec.com/api/constants" |
27 | 31 |
|
28 | 32 |
|
29 | 33 | CONF_SENSOR = "sensor"
|
|
0 commit comments