-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Functional parameter #39
Conversation
pyvlx/node_helper.py
Outdated
|
||
# Blinds have position and orientation (inherit frame.current_position_fp3) attribute | ||
if frame.node_type == NodeTypeWithSubtype.EXTERIOR_VENETIAN_BLIND or \ | ||
frame.node_type == NodeTypeWithSubtype.ADJUSTABLE_SLUTS_ROLLING_SHUTTER or \ | ||
frame.node_type == NodeTypeWithSubtype.LOUVER_BLIND: | ||
return Blind(pyvlx=pyvlx, node_id=frame.node_id, name=frame.name, serial_number=frame.serial_number, | ||
position_parameter=frame.current_position) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blind class has to be modified to have position_parameter in the constructor
@@ -18,6 +18,7 @@ def convert_frame_to_node(pyvlx, frame): | |||
position_parameter=frame.current_position, rain_sensor=True) | |||
|
|||
if frame.node_type == NodeTypeWithSubtype.ROLLER_SHUTTER or \ | |||
frame.node_type == NodeTypeWithSubtype.ADJUSTABLE_SLUTS_ROLLING_SHUTTER_WITH_PROJECTION or \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @pawlizio ,
in your PR, did you remove ADJUSTABLE_SLUTS_ROLLING_SHUTTER_WITH_PROJECTION
by intent?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, may by a mistake when sorting devices. I tried to group all devices with "orientation of the slats" on functional parameter 3 to Blinds and keep others RollerShutters.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But just to make sure, these objects were added by you with changeset 572d065 ...
(note to self: merge earlier to avoid such a mess :-) )
No description provided.