Skip to content

Commit

Permalink
bump to 0.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Hellowlol committed May 8, 2022
1 parent 75d7c24 commit b5b4870
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 17 deletions.
30 changes: 17 additions & 13 deletions custom_components/zaptec/const.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
NAME = 'zaptec'
VERSION = '0.0.4'
ISSUEURL = 'https://github.com/custom-components/zaptec/issues'
NAME = "zaptec"
VERSION = "0.0.5"
ISSUEURL = "https://github.com/custom-components/zaptec/issues"

STARTUP = """
-------------------------------------------------------------------
Expand All @@ -10,20 +10,24 @@
If you have any issues with this you need to open an issue here:
{issueurl}
-------------------------------------------------------------------
""".format(name=NAME, version=VERSION, issueurl=ISSUEURL)
""".format(
name=NAME, version=VERSION, issueurl=ISSUEURL
)

DOMAIN = 'zaptec'
DOMAIN = "zaptec"
OBSERVATIONS_REMAPS = {}
WANTED_ATTRIBUTES = []
CHARGE_MODE_MAP = {'0': ['unknown', 'mdi:help-rhombus-outline'],
'1': ['disconnected', 'mdi:power-plug-off'],
'2': ['waiting', 'mdi:power-sleep'],
'3': ['charging', 'mdi:power-plug'],
'5': ['charge_done', 'mdi:battery-charging-100']}
CHARGE_MODE_MAP = {
"0": ["unknown", "mdi:help-rhombus-outline"],
"1": ["disconnected", "mdi:power-plug-off"],
"2": ["waiting", "mdi:power-sleep"],
"3": ["charging", "mdi:power-plug"],
"5": ["charge_done", "mdi:battery-charging-100"],
}

TOKEN_URL = 'https://api.zaptec.com/oauth/token'
API_URL = 'https://api.zaptec.com/api/'
CONST_URL = 'https://api.zaptec.com/api/constants'
TOKEN_URL = "https://api.zaptec.com/oauth/token"
API_URL = "https://api.zaptec.com/api/"
CONST_URL = "https://api.zaptec.com/api/constants"


CONF_SENSOR = "sensor"
Expand Down
12 changes: 8 additions & 4 deletions custom_components/zaptec/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
"documentation": "https://github.com/custom-components/zaptec",
"dependencies": [],
"config_flow": true,
"codeowners": ["hellowlol"],
"requirements": ["azure-servicebus==7.0.1"],
"version": "0.0.4"
}
"codeowners": [
"hellowlol"
],
"requirements": [
"azure-servicebus==7.0.1"
],
"version": "0.0.5"
}

0 comments on commit b5b4870

Please sign in to comment.