mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-25 14:55:55 +01:00
Code cleansing
Signed-off-by: Gaël L'hopital <gael@lhopital.org>
This commit is contained in:
parent
815de298a2
commit
86458b1cc7
@ -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")
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user