Skip to content

Commit f98f9f2

Browse files
committed
fix: mypy error
1 parent c3c976e commit f98f9f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flux_led/base_device.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1356,7 +1356,7 @@ def _generate_extended_custom_effect(
13561356
raise ValueError(f"Color values must be 0-255, got {c}")
13571357

13581358
assert self._protocol is not None
1359-
assert isinstance(self._protocol, ProtocolLEDENET25Byte)
1359+
assert isinstance(self._protocol, ProtocolLEDENETExtendedCustom)
13601360
return self._protocol.construct_extended_custom_effect(
13611361
pattern_id, colors, speed, density, direction, option
13621362
)
@@ -1388,7 +1388,7 @@ def _generate_custom_segment_colors(
13881388
raise ValueError(f"Color values must be 0-255, got {c}")
13891389

13901390
assert self._protocol is not None
1391-
assert isinstance(self._protocol, ProtocolLEDENET25Byte)
1391+
assert isinstance(self._protocol, ProtocolLEDENETExtendedCustom)
13921392
return self._protocol.construct_custom_segment_colors(segments)
13931393

13941394
def _effect_to_pattern(self, effect: str) -> int:

0 commit comments

Comments
 (0)