Improve Home Assistant connection reliability
This commit is contained in:
@@ -35,14 +35,12 @@ extension Device where Self: Hashable
|
||||
{
|
||||
func hash(into hasher: inout Hasher)
|
||||
{
|
||||
hasher.combine(self.name)
|
||||
hasher.combine(self.type)
|
||||
hasher.combine(self.serial)
|
||||
}
|
||||
|
||||
static func == (lhs: Self, rhs: Self) -> Bool
|
||||
{
|
||||
return lhs.name == rhs.name && lhs.serial == rhs.serial
|
||||
return lhs.serial == rhs.serial
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user