-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Sitemap Builder #139
Sitemap Builder #139
Conversation
d61a7c3
to
d258254
Compare
a09ba51
to
4c73e6f
Compare
4c73e6f
to
0940f98
Compare
With items.build:
Should we make sitemaps.build similar to items builder syntax:
|
I thought about that, but with items a name is required, and label is optional, but very common. With sitemaps, both item and label are optional, and it's just as likely that one will be omitted as the other... erego I couldn't choose either as the less common one to place second as a positional parameter. Also, the regular sitemap syntax has both as essentially named parameters, so using keyword arguments for both maps more closely to that. |
We could use I also noticed that Strictly adhering to the sitemap file syntax may become irrelevant if one day openhab switched to yaml, although this may never actually happen. |
heh, yeah, for sitemap, the name is required, so I made it like items. Also, I can't necessarily do item/proxy detection, since String is a valid datatype for the item (same as for Items builder - you can use an Item, or a String). |
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.
Thanks! This is an awesome feature!
Signed-off-by: Cody Cutrer <cody@cutrer.us>
0940f98
to
3e7ba56
Compare
No description provided.