Skip to content
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

Closed
wants to merge 5 commits into from
Closed

Functional parameter #39

wants to merge 5 commits into from

Conversation

Julius2342
Copy link
Owner

No description provided.

@coveralls
Copy link

coveralls commented Apr 30, 2020

Coverage Status

Coverage remained the same at 81.631% when pulling e19ced6 on functional-parameter into 5a0e22f on master.


# 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)
Copy link
Collaborator

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 \
Copy link
Owner Author

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?

Copy link
Collaborator

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.

Copy link
Owner Author

@Julius2342 Julius2342 May 3, 2020

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 :-) )

@Julius2342 Julius2342 closed this May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants