Repository navigation
v2.0.2 - MH200N Energy Profile & Command Session Hardening
OWNd 2.0.2
Gateway profile and command-session hardening since 2.0.1 (#184, #185, #186). No breaking API changes.
pip install OWNd==2.0.2Changed
MH200NProfile(#184): includesWHO 18(WHO_ENERGY) and inheritssupports_energy_instant_power = True, backed by liveMH200N1.1.8captures and the010108firmware oracle (bt_supervisione).MH200Profileis unchanged.OWNCommandSession.send/send_to_gateway(#185): holdsSEND_AUTH_COOLDOWN(60 s) after a fatal negotiation refusal (password_error,password_required,negotiation_error) until credentials/gateway change or explicitconnect(), and returnsNonefromsend_to_gateway(raise_on_error=False)on a failedconnect()without callingsend().
Fixed
OWNCommandSession.send(#186): detects gateway peer closes behind buffered unsolicited frames (e.g.*#*0##+FINafter 30 s idle) via asyncioStreamReader._eofso the session reopens cleanly before the next write.OWNCommandSession(#184): guardsconnect()result checks withisinstance(result, Mapping)inconnect(),send_to_gateway(),probe_gateway(), and_locked_send()to prevent unawaited-coroutineRuntimeWarnings or accidental truthy"Success"matches on bareAsyncMockpatches; CI now enforceserror::RuntimeWarning.
Full changelog: v2.0.1...v2.0.2