Fix High Sierra issues

This commit is contained in:
Dhinak G
2021-06-09 12:50:59 -04:00
parent fecf9502d0
commit 7b758fcf15

View File

@@ -310,7 +310,7 @@ class Computer:
def smbios_probe(self):
# Reported model
entry = next(self.ioregistry.find(entry_class="IOPlatformExpertDevice"))
entry = next(self.ioregistry.find(name="Root")).children[0]
self.reported_model = entry.properties["model"].strip(b"\0").decode()
self.reported_board_id = entry.properties.get("board-id", entry.properties.get("target-type", b"")).strip(b"\0").decode()