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

Bug/config fix #118

Closed
wants to merge 34 commits into from
Closed

Bug/config fix #118

wants to merge 34 commits into from

Conversation

zackwag
Copy link

@zackwag zackwag commented Feb 9, 2021

No description provided.

Zack Wagner and others added 30 commits March 31, 2019 16:09
Adding Guest Mode Switch
Remove NoOne sensor and added renamed DummySwitch to GuestModeSwitch
Anyone sensor is now mandatory
Add Switch Check
Switch was initialized in wrong order
this.platform.storage NOT this.storage
GuestModeSwitch state now accessible from getStateFromCache()
Read switch state and affect PeopleAllAccessory
Merry Christmas! I got a new Mac Mini this year and wanted to try to add MAC address support.

With the help of SonarLint, I was able to refactor the code. I hope you like it 😄

I've adapted the code from https://github.com/stickpin/homebridge-people-arp in my own special implementation.
I got overzealous in the 0.9.5 release. Redeploying 0.9.0 as 0.9.6 so that no one sees further downtime.
Why:
- I recently moved from HOOBS to Homebridge (for reasons) and had to reinstall the plugin. It had been so long I didn't realize there was now a way to graphically set parameters!

How:
- Using the tool at https://hamidihamza.com/ajsf/?framework=bootstrap-4 I was able to build the config.schema.json file.

Test Plan:
- Deploy it!

I hope nothing breaks and people continue to enjoy using this plugin.
Why:
- An empty people config was not handled.
- People is 9/10 empty because it's just been installed.

How:
- If config["people"] is empty set the value to an empty array i.e. [] instead.

Test Plan:
- Ship it!
Why:
- Issue reported by @bxlouis at #4

How:
- Add ability to configure "name" attribute of plugin for logs.
- Also update sample config in README.md

Test Plan:
- Run locally on my mac mini with an empty config and was able to configure properly.
@zackwag
Copy link
Author

zackwag commented Feb 9, 2021

Mistake

@zackwag zackwag closed this Feb 9, 2021
@zackwag zackwag deleted the bug/config-fix branch February 9, 2021 14:24
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.

None yet

2 participants