-
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
tweaked some English grammar #166
base: master
Are you sure you want to change the base?
Conversation
Tweaked some English. Review to be sure corrections didn't impede meaning.
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.
Thank you very much for your help. Much appreciated.
I've noted some things that seem to require further improvements though.
the ui to be used for this [ThingClass](/documentation/developers/integrations/thing-class#interfaces). For example, having a plugin that can control a dimmable light would likely have a | ||
state named "powered" of type boolean and one named "brightness" of type int, ranging from 0 to 100%. Having just this | ||
information, the ui would create a generic switch component to flip the bool state and a generic slider component to | ||
that the UI (User Interface) be used for this [ThingClass](/documentation/developers/integrations/thing-class#interfaces). For example, having a plugin that can control a dimmable light would likely have a |
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.
I'm not a native english speaker, but this doesn't sound right to me.
So the way it works is that if a plugin developer for example specifies the "light" interface, nymea:app would pick the UI for lights, if a plugin developer specifies the thermostat interface, nymea:app would pick the thermostat UI for the device.
|
||
A interface can extend another interface. For example, the light interface only requires one state called powered of type bool. | ||
An interface can extend another interface. For example, the light interface only requires one state called _powered off type bool_. |
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.
the light interface requires one state. The states name is "power" and the states type is "bool". So it seems the change from "of" to "off" as well as making the whole thing italic (with the underscores) wasn't right.
Tweaked some English. Review to be sure corrections didn't impede meaning.