Skip to content

Commit

Permalink
remove services call that isn't working yet
Browse files Browse the repository at this point in the history
  • Loading branch information
wrodie committed Nov 4, 2023
1 parent 71e9fd7 commit 55085b0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 31 deletions.
2 changes: 0 additions & 2 deletions custom_components/ha_behringer_mixer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
entry.async_on_unload(entry.add_update_listener(async_reload_entry))



return True


Expand Down
20 changes: 10 additions & 10 deletions custom_components/ha_behringer_mixer/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
from __future__ import annotations

from homeassistant.components.number import NumberEntity, NumberEntityDescription
from homeassistant.helpers import config_validation as cv, entity_platform
import voluptuous as vol
#from homeassistant.helpers import config_validation as cv, entity_platform
#import voluptuous as vol

from .const import DOMAIN
from .entity import BehringerMixerEntity
Expand All @@ -16,14 +16,14 @@ async def async_setup_entry(hass, entry, async_add_devices):
async_add_devices(devices_list)

# Register service to change scenes
platform = entity_platform.async_get_current_platform()
platform.async_register_entity_service(
"SERVICE_CHANGE_SCENE",
{
vol.Required("scene_number"): cv.Number,
},
"change_scene",
)
# platform = entity_platform.async_get_current_platform()
# platform.async_register_entity_service(
# "SERVICE_CHANGE_SCENE",
# {
# vol.Required("scene_number"): cv.Number,
# },
# "change_scene",
# )


def build_entities(coordinator):
Expand Down
19 changes: 0 additions & 19 deletions custom_components/ha_behringer_mixer/services.yaml

This file was deleted.

0 comments on commit 55085b0

Please sign in to comment.