Skip to content

Commit

Permalink
improve
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierZal committed Oct 13, 2024
1 parent 3898b5d commit 456da0b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/facades/base_device.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ export abstract class BaseDeviceFacade<T extends keyof typeof DeviceType>
}

public get values(): Values[T] {
return Object.fromEntries([...this.#values].map((key) => [key, this[key]]))
return Object.fromEntries(
this.#values.values().map((key) => [key, this[key]]),
)
}

protected get setData(): Required<UpdateDeviceData[T]> {
Expand Down

0 comments on commit 456da0b

Please sign in to comment.