Skip to content

Instantly share code, notes, and snippets.

@LucaKaufmann
LucaKaufmann / SwiftuiScrollableView.swift
Last active October 4, 2023 18:01
SwiftUI Scrollable chart issue
import SwiftUI
import Charts
public enum StatisticsTimeFrame: String, CaseIterable {
case week = "Week"
case month = "Month"
case year = "Year"
}
public struct SleepStatisticDatapoint: Equatable {
@LucaKaufmann
LucaKaufmann / netatmo2.py
Created September 29, 2018 15:09 — forked from gieljnssns/netatmo2.py
Custom climate component for testing new Netatmo Energy API on HA +0.72
"""
Support for Netatmo Smart Thermostat.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/climate.netatmo/
"""
import logging
from datetime import timedelta
import voluptuous as vol
from homeassistant.const import TEMP_CELSIUS, ATTR_TEMPERATURE