loxone-java icon indicating copy to clipboard operation
loxone-java copied to clipboard

Failed HTTP get for typed command can lead to ClassCastException

Open jimirocks opened this issue 3 years ago • 0 comments

For instance DEV_SYS_CPU command should carry PercentValue however in case of failure (i.e. unsufficient permissions) the JsonValue is returned instead. Since LoxoneHttp.get() is type parametrized, the ClassCastException happens later when trying to access returned LoxoneMessage.value

jimirocks avatar Oct 18 '22 06:10 jimirocks