From 5f88453bca7578d19a2779b8a19356af4d26a7bf Mon Sep 17 00:00:00 2001 From: Morg42 <43153739+Morg42@users.noreply.github.com> Date: Sun, 14 Apr 2024 09:12:37 +0200 Subject: [PATCH] zigbee2mqtt: accept mixed case topics --- zigbee2mqtt/__init__.py | 6 +++--- zigbee2mqtt/plugin.yaml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/zigbee2mqtt/__init__.py b/zigbee2mqtt/__init__.py index a5a63249d..b8cd20b02 100755 --- a/zigbee2mqtt/__init__.py +++ b/zigbee2mqtt/__init__.py @@ -47,7 +47,7 @@ class Zigbee2Mqtt(MqttPlugin): """ Main class of the Plugin. Does all plugin specific stuff and provides the update functions for the items """ - PLUGIN_VERSION = '2.0.0' + PLUGIN_VERSION = '2.0.1' def __init__(self, sh, **kwargs): """ Initializes the plugin. """ @@ -58,7 +58,7 @@ def __init__(self, sh, **kwargs): self.logger.info(f'Init {self.get_shortname()} plugin {self.PLUGIN_VERSION}') # get the parameters for the plugin (as defined in metadata plugin.yaml): - self.z2m_base = self.get_parameter_value('base_topic').lower() + self.z2m_base = self.get_parameter_value('base_topic') self.cycle = self.get_parameter_value('poll_period') self.read_at_init = self.get_parameter_value('read_at_init') self._z2m_gui = self.get_parameter_value('z2m_gui') @@ -172,7 +172,7 @@ def parse_item(self, item): self.logger.warning(f"parsed item {item} has no {Z2M_TOPIC} set, ignoring") return - attr = self.get_iattr_value(item.conf, Z2M_ATTR).lower() + attr = self.get_iattr_value(item.conf, Z2M_ATTR) if item.type() == 'bool': bval = self.get_iattr_value(item.conf, Z2M_BVAL) diff --git a/zigbee2mqtt/plugin.yaml b/zigbee2mqtt/plugin.yaml index 31a509008..9629740b5 100755 --- a/zigbee2mqtt/plugin.yaml +++ b/zigbee2mqtt/plugin.yaml @@ -12,12 +12,12 @@ plugin: documentation: '' support: https://knx-user-forum.de/forum/supportforen/smarthome-py/1856775-support-thread-f%C3%BCr-das-zigbee2mqtt-plugin - version: 2.0.0 # Plugin version + version: 2.0.1 # Plugin version sh_minversion: 1.9.5.6 # minimum shNG version to use this plugin # sh_maxversion: # maximum shNG version to use this plugin (leave empty if latest) py_minversion: 3.8 # minimum Python version to use for this plugin - multi_instance: True # plugin supports multi instance - restartable: True + multi_instance: true # plugin supports multi instance + restartable: true classname: Zigbee2Mqtt # class containing the plugin parameters: