Code cleansing

Signed-off-by: Gaël L'hopital <gael@lhopital.org>
This commit is contained in:
Gaël L'hopital 2024-11-19 14:35:48 +01:00
parent 815de298a2
commit 86458b1cc7
4 changed files with 3 additions and 7 deletions

View File

@ -15,7 +15,7 @@ package org.openhab.binding.airparif.internal;
import org.eclipse.jdt.annotation.NonNullByDefault;
/**
* An exception that occurred while communicating with Air Parif API server or related processes.
* An exception that occurred while communicating with AirParif API server or related processes.
*
* @author Gaël L'hopital - Initial contribution
*/

View File

@ -49,7 +49,7 @@ import org.slf4j.LoggerFactory;
@NonNullByDefault
public class AirParifIconProvider implements IconProvider {
private static final String NEUTRAL_COLOR = "#3d3c3c";
private static final String DEFAULT_LABEL = "Air Parif Icons";
private static final String DEFAULT_LABEL = "AirParif Icons";
private static final String AQ_ICON = "aq";
private static final String DEFAULT_DESCRIPTION = "Icons illustrating air quality levels provided by AirParif";
private static final List<String> POLLEN_ICONS = Pollen.AS_SET.stream().map(Pollen::name).map(String::toLowerCase)

View File

@ -36,7 +36,6 @@ public class AirParifApi {
public static final URI EPISODES_URI = AIRPARIF_BUILDER.clone().path("episodes").path("en-cours-et-prevus").build();
private static final UriBuilder INDICES_BUILDER = AIRPARIF_BUILDER.clone().path("indices").path("prevision");
public static final URI PREV_COLORS_URI = INDICES_BUILDER.clone().path("couleurs").build();
public static final URI PREV_BULLETIN_URI = INDICES_BUILDER.clone().path("bulletin").build();
private static final UriBuilder POLLENS_BUILDER = AIRPARIF_BUILDER.clone().path("pollens");
@ -44,6 +43,7 @@ public class AirParifApi {
// Poor interest, only returns highest risk level for the dept.
// public static final UriBuilder POLLENS_DEPT_BUILDER = POLLENS_BUILDER.clone().path("departement");
// public static final URI PREV_COLORS_URI = INDICES_BUILDER.clone().path("couleurs").build();
public enum Scope {
@SerializedName("Cartes et résultats Hor'Air")

View File

@ -278,10 +278,6 @@ public class AirParifBridgeHandler extends BaseBridgeHandler implements HandlerU
updateState(new ChannelUID(dailyGroupUID, CHANNEL_MESSAGE), new StringType(episode.message().fr()));
updateState(new ChannelUID(dailyGroupUID, CHANNEL_TOMORROW), new StringType(episode.message().fr()));
// Set.of(episode.today(), episode.tomorrow()).stream().forEach(aq -> {
// });
ZonedDateTime tomorrowMorning = ZonedDateTime.now().plusDays(1).truncatedTo(ChronoUnit.DAYS).plusMinutes(1);
schedule(EPISODE_JOB, () -> updateEpisode(dailyGroupUID),
Duration.between(ZonedDateTime.now(), tomorrowMorning));