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

Add min/max values to fan speed command #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kodek
Copy link

@kodek kodek commented Feb 11, 2018

Fixes the following crash when setting fan speed:

/haiku2mqtt/node_modules/rxjs/Subscriber.js:243
throw err;
^

TypeError: Cannot read property '0' of undefined
at Object.number (/haiku2mqtt/node_modules/haiku-senseme/dist/lib/mapValues.js:34:81)
at validateAndMap (/haiku2mqtt/node_modules/haiku-senseme/dist/lib/mapValues.js:105:34)
at Object.value.set [as value] (/haiku2mqtt/node_modules/haiku-senseme/dist/lib/walk/accessorVisitor.js:97:60)
at SafeSubscriber._next (/haiku2mqtt/dist/index.js:95:35)
at SafeSubscriber.__tryOrUnsub (/haiku2mqtt/node_modules/rxjs/Subscriber.js:239:16)
at SafeSubscriber.next (/haiku2mqtt/node_modules/rxjs/Subscriber.js:186:22)
at Subscriber._next (/haiku2mqtt/node_modules/rxjs/Subscriber.js:126:26)
at Subscriber.next (/haiku2mqtt/node_modules/rxjs/Subscriber.js:90:18)
at CatchSubscriber.Subscriber._next (/haiku2mqtt/node_modules/rxjs/Subscriber.js:126:26)
at CatchSubscriber.Subscriber.next (/haiku2mqtt/node_modules/rxjs/Subscriber.js:90:18)

docBliny added a commit to docBliny/haiku-senseme that referenced this pull request Sep 30, 2018
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

1 participant