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

Door List Order #113

Open
charredchar opened this issue Dec 30, 2019 · 5 comments
Open

Door List Order #113

charredchar opened this issue Dec 30, 2019 · 5 comments

Comments

@charredchar
Copy link

I added four doors to the config but they are not listed in order of the config or in order of the name. I want these to be listed in a specific order, how would I go about this?

@andrewshilliday
Copy link
Owner

I hadn’t considered that. It would require a code change to preserve the order from the config file. Shouldn’t be too difficult if anyone wants to take a stab at it :). Otherwise I’ll try to make the change when I get a chance.

@bkjems
Copy link

bkjems commented Mar 17, 2020

Change
self.doors = [Door(n, c) for (n, c) in config['doors'].items()]
to
self.doors = [Door(n, c) for (n, c) in sorted(config['doors'].items())]

To sort by doors in the config file

@andrewshilliday
Copy link
Owner

@bkjems would you care yo make a pull request for the change?

@bkjems
Copy link

bkjems commented Jun 18, 2020

@andrewshilliday It looks like its committed.
2855769#diff-7a315c65deca2c033ce485bfa9de4f4a

@nadineross412
Copy link

Hi there! In order to list the doors in a specific order, you may need to modify the code or configuration file of the garage door controller to reflect the order you want. You can try looking for a section in the code that lists the doors and try rearranging the order there. Alternatively, you can reach out to the developer or support team for the garage door controller and see if they have any suggestions or solutions. Hope this helps!

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

No branches or pull requests

4 participants