YIO-Remote / remote-software

💎 YIO Remote Software repository
GNU General Public License v3.0
164 stars 21 forks source link

fix: Blind open logic #490

Closed zehnm closed 4 years ago

zehnm commented 4 years ago

Fixed isOn() logic to return correct state:

  1. turnOn() calls open()
  2. open() sends BlindDef::C_OPEN command
  3. Entity should have BlindDef::OPEN state once blind is open
  4. Therefore, isOn() must return true if state is BlindDef::OPEN