Skip to content

Commit d305ea8

Browse files
committed
Use front-part of node_type
1 parent d2d63a8 commit d305ea8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugwise_usb/nodes/node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ async def update_node_details(
513513
if (
514514
self._node_info.node_type is not None
515515
and (
516-
correct_model := str(self._node_info.node_type.name).lower()
516+
correct_model := str(self._node_info.node_type.name).lower().split("_")[0]
517517
) not in self._node_info.model.lower()
518518
):
519519
self._node_info.model = correct_model.capitalize()

0 commit comments

Comments
 (0)