gce-electronics / HA_RFPlayer

RFPlayer plugin for Home assistant
Apache License 2.0
27 stars 9 forks source link

Use the name of the parameters to prevent mistakes in send_command_ack call #32

Closed prahal closed 1 year ago

prahal commented 1 year ago

This is good in all cases and as send_command_ack takes named-parameter is easy to achieve.

But it will be mandatory if we reorder the parameter of send_command_ack function (I made a branch where I do so because I make protocol optional and I prefer to keep the mandatory parameter before the optional one thus protocol became the second parameter instead of the first.

Aohzan commented 1 year ago

LGTM