mirror of
https://github.com/danieldemus/openhab-core.git
synced 2026-07-29 12:34:22 +02:00
The DSL Rule provider must handle rules and scripts in onReadyMarkerAdded. Until now, only .rules files were handled, not .script files. As a result, .script files were ignored by the rule provider. Sometimes it worked well because there was a call to reloadAllModelsOfType for all scripts when the rule provider was ready and the .script files were then handled by the provider in modelChanged. If this last call was done while the rule provider was not yet ready, the .script files were ignored because the rule provider was not yet setup to handle model changes. So all of this depends on timing conditions at openHAB startup. With that change, the .script files will always be considered by the DSL rule provider. Signed-off-by: Laurent Garnier <lg.hc@free.fr>