Skip to content

Commit

Permalink
0.2.2-b3
Browse files Browse the repository at this point in the history
  • Loading branch information
hakana committed Mar 3, 2021
1 parent b965183 commit 852ed4e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/shelly/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

_LOGGER = logging.getLogger(__name__)

__version__ = "0.2.2-b2"
__version__ = "0.2.2-b3"
VERSION = __version__

async def async_setup(hass, config):
Expand Down
5 changes: 5 additions & 0 deletions custom_components/shelly/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
ENERGY_WATT_HOUR
)

DEVICE_CLASS_MOTION = 'motion'

from homeassistant.components.binary_sensor import (
DEVICE_CLASS_CONNECTIVITY
)
Expand Down Expand Up @@ -292,6 +294,7 @@
SENSOR_TYPE_PPM = 'ppm'
SENSOR_TYPE_TOTAL_WORK_TIME = 'total_work_time'
SENSOR_TYPE_EXT_SWITCH = 'external_switch'
SENSOR_TYPE_MOTION = 'motion'

SENSOR_TYPES_CFG = {
SENSOR_TYPE_DEFAULT:
Expand Down Expand Up @@ -351,4 +354,6 @@
['Total work time', 's', 'mdi:briefcase-clock', None, None],
SENSOR_TYPE_EXT_SWITCH:
['External switch', '', 'mdi:electric-switch', None, 'bool'],
SENSOR_TYPE_MOTION:
['Motion', '', 'mdi:motion-sensor', DEVICE_CLASS_MOTION, 'bool'],
}
2 changes: 1 addition & 1 deletion custom_components/shelly/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"documentation": "https://github.com/StyraHem/ShellyForHASS/blob/master/README.md",
"dependencies": ["zeroconf"],
"codeowners": ["@hakana","@StyraHem"],
"requirements": ["pyShelly==0.2.21", "paho-mqtt==1.5.1"]
"requirements": ["pyShelly==0.2.22", "paho-mqtt==1.5.1"]
}

0 comments on commit 852ed4e

Please sign in to comment.