diff --git a/custom_components/mega/const.py b/custom_components/mega/const.py index 3517bf2..44056ff 100644 --- a/custom_components/mega/const.py +++ b/custom_components/mega/const.py @@ -64,7 +64,7 @@ LUX = 'lux' SINGLE_CLICK = 'single' DOUBLE_CLICK = 'double' -PATT_FW = re.compile(r'fw:\s(.+)\)') +PATT_FW = re.compile(r'fw:\s(.+)\b') REMOVE_CONFIG = [ 'extenders', diff --git a/custom_components/mega/i2c.py b/custom_components/mega/i2c.py index a8ee4c8..ef9cf9f 100644 --- a/custom_components/mega/i2c.py +++ b/custom_components/mega/i2c.py @@ -103,6 +103,10 @@ i2c_classes = { DeviceType(DEVICE_CLASS_TEMPERATURE, TEMP_CELSIUS, None), DeviceType(DEVICE_CLASS_HUMIDITY, PERCENTAGE, None) ], + 'dps368': [ + DeviceType(DEVICE_CLASS_PRESSURE, PRESSURE_BAR, None), + DeviceType(DEVICE_CLASS_TEMPERATURE, TEMP_CELSIUS, None), + ], 'mlx90614': [ Skip, DeviceType(DEVICE_CLASS_TEMPERATURE, TEMP_CELSIUS, 'temp'), diff --git a/custom_components/mega/manifest.json b/custom_components/mega/manifest.json index fe36b41..c5ba0e8 100644 --- a/custom_components/mega/manifest.json +++ b/custom_components/mega/manifest.json @@ -2,7 +2,7 @@ "domain": "mega", "name": "mega", "config_flow": true, - "documentation": "https://www.home-assistant.io/integrations/mega_hacs", + "documentation": "https://github.com/andvikt/mega_hacs", "requirements": [ "beautifulsoup4", "lxml" @@ -15,5 +15,5 @@ "@andvikt" ], "issue_tracker": "https://github.com/andvikt/mega_hacs/issues", - "version": "v1.0.1" + "version": "v1.0.6b4" } \ No newline at end of file