Closed algar42 closed 4 years ago
Merging #8 into master will not change security risk.
Clean: 4
Clean: 4
Thank you for PR, but I have a couple of questions. The types in type-detector are generic. And that means, that if some Adapter does not pass to one of generic types, so the existing type must be tuned or the adapter must be changed.
Here I can see, that similar to weatherForecast the accuWeatherForecast will be created. This is wrong.
This is actually not wrong. I really do not want to install all the weather adapters, get APIs etc to check them all. Plus accuWeatherForecast created in a way to receive icon URLs and free-text states and designed specifically for custom lovelace card. The states from weatherForeacst and accuWeatherForecast types are different also by weather source - weatherForecast takes current weather from forecast.0 (which I believe was done because there were no current weather in the adapter for which this type was created), but accuweather has separate current weather. If you have several weather adapters installed including AccuWeather I don't mind if you merge these two types together keeping funcionality of both, but otherwise I would prefer to keep them separate at least for now until someone will test and merge them :)
Sorry I will not merge this PR, because accuWeatherForecast must be rewritten.
Accuweather has slightly different states compared to what we already have as Weather type, so I decided to add separate type in order not to break existing weather devices.