Reintroduce unique_id for Netatmo sensor (#18774)
Reintroduce unique_id for Netatmo sensor (#18774)

* netatmo: make module type identification more consistent

For the interpretation of voltage values the different types of netatmo
modules need to be distinguished. This is currently done by selecting
the second character of the modules '_id'. The _id-field actually
contains a mac address. This is an undocumented way of identifying the
module_type.

The netatmo API also delivers a field called 'type' which provides a
more consistent way to differentiate the fields. This commit introduces
a differentiation which uses this provided type. This should improve
readability.

Also the field module_id is renamed to module_type which should better
resemble what it actually represents.

* netatmo: reintroduce unique_id using actual module mac address

Each netatmo module features a unique MAC-Address. The base station uses
an actual assigned MAC Address it also uses on the Wifi it connects to.
All other modules have unique MAC Addresses which are only assigned and
used by Netatmo on the internal Wireless-Network. All theses Addresses
are exposed via the API. So we could use the combination
MAC-Address-Sensor_type as unique_id.

In a previous commit this had already been tried but there was a
misunderstanding in what the 'module_id' represented. It was actually
only a module_type representation so it clashed when two modules of the
same type where used.

* Netatmo: fixed line length

jabesq/home-assistant,jawilson/home-assistant,leppa/home-assistant,auduny/home-assistant,HydrelioxGitHub/home-assistant,rohitranjan1991/home-assistant,FreekingDean/home-assistant,jabesq/home-assistant,Teagan42/home-assistant,sander76/home-assistant,aequitas/home-assistant,pschmitt/home-assistant,nkgilley/home-assistant,HydrelioxGitHub/home-assistant,tboyce1/home-assistant,DavidLP/home-assistant,turbokongen/home-assistant,w1ll1am23/home-assistant,DavidLP/home-assistant,sdague/home-assistant,soldag/home-assistant,joopert/home-assistant,DavidLP/home-assistant,leppa/home-assistant,robbiet480/home-assistant,MartinHjelmare/home-assistant,tboyce1/home-assistant,nugget/home-assistant,Teagan42/home-assistant,partofthething/home-assistant,tinloaf/home-assistant,fbradyirl/home-assistant,w1ll1am23/home-assistant,aronsky/home-assistant,balloob/home-assistant,jnewland/home-assistant,joopert/home-assistant,qedi-r/home-assistant,jamespcole/home-assistant,qedi-r/home-assistant,tinloaf/home-assistant,auduny/home-assistant,rohitranjan1991/home-assistant,mKeRix/home-assistant,rohitranjan1991/home-assistant,molobrakos/home-assistant,lukas-hetzenecker/home-assistant,FreekingDean/home-assistant,molobrakos/home-assistant,mezz64/home-assistant,nugget/home-assistant,fbradyirl/home-assistant,MartinHjelmare/home-assistant,GenericStudent/home-assistant,kennedyshead/home-assistant,lukas-hetzenecker/home-assistant,toddeye/home-assistant,tchellomello/home-assistant,balloob/home-assistant,sdague/home-assistant,auduny/home-assistant,fbradyirl/home-assistant,tboyce1/home-assistant,tboyce021/home-assistant,nkgilley/home-assistant,jamespcole/home-assistant,PetePriority/home-assistant,adrienbrault/home-assistant,jnewland/home-assistant,nugget/home-assistant,postlund/home-assistant,molobrakos/home-assistant,sander76/home-assistant,Danielhiversen/home-assistant,PetePriority/home-assistant,kennedyshead/home-assistant,mKeRix/home-assistant,robbiet480/home-assistant,aronsky/home-assistant,GenericStudent/home-assistant,mKeRix/home-assistant,jabesq/home-assistant,jawilson/home-assistant,mKeRix/home-assistant,turbokongen/home-assistant,tinloaf/home-assistant,Danielhiversen/home-assistant,mezz64/home-assistant,toddeye/home-assistant,Cinntax/home-assistant,home-assistant/home-assistant,jnewland/home-assistant,postlund/home-assistant,titilambert/home-assistant,aequitas/home-assistant,titilambert/home-assistant,tchellomello/home-assistant,MartinHjelmare/home-assistant,aequitas/home-assistant,home-assistant/home-assistant,partofthething/home-assistant,soldag/home-assistant,HydrelioxGitHub/home-assistant,tboyce021/home-assistant,Cinntax/home-assistant,balloob/home-assistant,jamespcole/home-assistant,adrienbrault/home-assistant,tboyce1/home-assistant,pschmitt/home-assistant,PetePriority/home-assistant