Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions zigbee2mqtt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ def __init__(self, sh, **kwargs):

# Call init code of parent class (MqttPlugin)
super().__init__()
if not self._init_complete:
return

# self.logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -861,6 +863,5 @@ def _item_color_rgb_to_xy(self, item_r, item_g, item_b, item_xy, item_brightness
try:
item_xy({'x': x, 'y': y}, caller)
item_brightness(bright * 254, caller)
except (ValueError, TypeError):
self.logger.warning(f"Error on assigning values {x},{y}, {bright} to items {item_xy} and {item_brightness}")
return
except (ValueError, TypeError) as e:
self.logger.warning(f"Error on assigning values {x},{y}, {bright} to items {item_xy} and {item_brightness}: {e}")
Loading