elad-bar / ha-edgeos

Integration with EdgeOS (Ubiquiti)
134 stars 23 forks source link

[Feature/ Breaking Change] Make Leased Attribute a dict object #119

Closed illuzn closed 1 month ago

illuzn commented 7 months ago

Changes

This change makes the leased attribute of unknown devices a dict of dict object.

The schema of each item is:

[ip]: 
  hostname: [name]
  MAC: [MAC address]

Rationale

This allows my blueprint which fires a notification upon an unknown device connecting to function. Unknown is defined by a list of predefined known MAC addresses.

Breaking Change

This is a breaking change because it changes the previous leased format of [name] [ip]. However: