Skip to content

Commit

Permalink
Run formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 29, 2024
1 parent e9c90d1 commit da1e324
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions custom_components/smoothing_analytics_sensors/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ async def async_step_user(self, user_input=None):
vol.Required("input_sensor"): selector(
{"entity": {"domain": "sensor"}}
),
vol.Optional(
"device_name", default="Smoothing Analytics Device"
): str,
vol.Optional("device_name", default="Smoothing Analytics Device"): str,
vol.Optional(
"lowpass_time_constant", default=DEFAULT_LOW_PASS
): selector(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

_LOGGER = logging.getLogger(__name__)


def calculate_alpha(smoothing_window):
"""Calculate alpha for Exponential Moving Average (EMA)"""
return 2 / (smoothing_window + 1)
Expand Down
1 change: 1 addition & 0 deletions custom_components/smoothing_analytics_sensors/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

_LOGGER = logging.getLogger(__name__)


class SmoothingAnalyticsEntity(Entity):
"""Base class for Smoothing Analytics Entity (Device)"""

Expand Down

0 comments on commit da1e324

Please sign in to comment.