Skip to content

Commit b5b4870

Browse files
committed
bump to 0.0.5
1 parent 75d7c24 commit b5b4870

File tree

2 files changed

+25
-17
lines changed

2 files changed

+25
-17
lines changed

custom_components/zaptec/const.py

+17-13
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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"
44

55
STARTUP = """
66
-------------------------------------------------------------------
@@ -10,20 +10,24 @@
1010
If you have any issues with this you need to open an issue here:
1111
{issueurl}
1212
-------------------------------------------------------------------
13-
""".format(name=NAME, version=VERSION, issueurl=ISSUEURL)
13+
""".format(
14+
name=NAME, version=VERSION, issueurl=ISSUEURL
15+
)
1416

15-
DOMAIN = 'zaptec'
17+
DOMAIN = "zaptec"
1618
OBSERVATIONS_REMAPS = {}
1719
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+
}
2327

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"
2731

2832

2933
CONF_SENSOR = "sensor"

custom_components/zaptec/manifest.json

+8-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
"documentation": "https://github.com/custom-components/zaptec",
55
"dependencies": [],
66
"config_flow": true,
7-
"codeowners": ["hellowlol"],
8-
"requirements": ["azure-servicebus==7.0.1"],
9-
"version": "0.0.4"
10-
}
7+
"codeowners": [
8+
"hellowlol"
9+
],
10+
"requirements": [
11+
"azure-servicebus==7.0.1"
12+
],
13+
"version": "0.0.5"
14+
}

0 commit comments

Comments
 (0)