diff --git a/Commands/Twinkly/Get-Twinkly.ps1 b/Commands/Twinkly/Get-Twinkly.ps1 index a0c02d6..cde0539 100644 --- a/Commands/Twinkly/Get-Twinkly.ps1 +++ b/Commands/Twinkly/Get-Twinkly.ps1 @@ -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 }