{"push_id":3098353935,"size":1,"distinct_size":1,"ref":"refs/heads/dev","head":"bd09e9668192c958a2c87a19788818afab08af70","before":"558504c686e755183dc868db84e366272b15f063","commits":[{"sha":"bd09e9668192c958a2c87a19788818afab08af70","author":{"name":"Michael Nosthoff","email":"64b2b6d12bfe4baae7dad3d018f8cbf6b0e7a044@stresser.de"},"message":"Reintroduce unique_id for Netatmo sensor (#18774)\n\n* netatmo: make module type identification more consistent\r\n\r\nFor the interpretation of voltage values the different types of netatmo\r\nmodules need to be distinguished. This is currently done by selecting\r\nthe second character of the modules '_id'. The _id-field actually\r\ncontains a mac address. This is an undocumented way of identifying the\r\nmodule_type.\r\n\r\nThe netatmo API also delivers a field called 'type' which provides a\r\nmore consistent way to differentiate the fields. This commit introduces\r\na differentiation which uses this provided type. This should improve\r\nreadability.\r\n\r\nAlso the field module_id is renamed to module_type which should better\r\nresemble what it actually represents.\r\n\r\n* netatmo: reintroduce unique_id using actual module mac address\r\n\r\nEach netatmo module features a unique MAC-Address. The base station uses\r\nan actual assigned MAC Address it also uses on the Wifi it connects to.\r\nAll other modules have unique MAC Addresses which are only assigned and\r\nused by Netatmo on the internal Wireless-Network. All theses Addresses\r\nare exposed via the API. So we could use the combination\r\nMAC-Address-Sensor_type as unique_id.\r\n\r\nIn a previous commit this had already been tried but there was a\r\nmisunderstanding in what the 'module_id' represented. It was actually\r\nonly a module_type representation so it clashed when two modules of the\r\nsame type where used.\r\n\r\n* Netatmo: fixed line length","distinct":true,"url":"https://api.github.com/repos/keneanung/home-assistant/commits/bd09e9668192c958a2c87a19788818afab08af70"}]}
{"actor":{"display_login":"pull"}}