openhab-core
openhab-core copied to clipboard
[sitemap] Do not try to convert item state into OnOffType for Switch widget if item has options
When the Switch widget has mappings or when the item has a state description with options, the Switch widget is rendered by UIs with buttons. There was no state conversion into OnOffType when the switch widget has mappings. But when the item has a state description with options, it was wrongly converted into OnOffType.
See this community discussion for an example: https://community.openhab.org/t/item-statedescription-and-sitemaps/155935
Signed-off-by: Laurent Garnier [email protected]
This pull request has been mentioned on openHAB Community. There might be relevant details there:
https://community.openhab.org/t/item-statedescription-and-sitemaps/155935/9