Skip to content

Commit

Permalink
feat: Get-Twinkly decoration ( Fixes #137 )
Browse files Browse the repository at this point in the history
  • Loading branch information
James Brundage committed Jul 16, 2024
1 parent adfea5c commit d61fbde
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Commands/Twinkly/Get-Twinkly.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@
if ([DateTime]::Now -ge $twinklyConnection.Authentication_ExpiresAt) { # then reconnect.
$twinklyConnection = Connect-Twinkly -IPAddress $twinklyConnection.IPAddress -PassThru
}
$twinklyConnection.pstypenames.clear()
$twinklyConnection.pstypenames.add('Twinkly')
$script:TwinklyCache["$($twinklyConnection.IPAddress)"] = $twinklyConnection
}

Expand Down

0 comments on commit d61fbde

Please sign in to comment.