hostUpdated method
Raises the version of h and appends host.updated (04 2.1); keyChanged after a
re-pairing (24 3.3).
Implementation
void hostUpdated(FakeHost h, {bool keyChanged = false}) {
h.version += 1;
append(
'host.updated',
resource: {'kind': 'host', 'id': h.id, 'version': h.version},
payload: {'host': h.json, if (keyChanged) 'key_changed': true},
);
}