mirror of
https://github.com/home-assistant/core
synced 2024-09-03 08:14:07 +02:00
Updated the provider name to blockchain.com (#31534)
* Updated the provider name to blockchain.com Blockchain.info moved from .info .com. Updated the name of the service to blockchain.com * Updated the provider name to blockchain.com Updated the provider name to blockchain.com
This commit is contained in:
parent
44e243039c
commit
4f2195101c
@ -1,6 +1,6 @@
|
||||
{
|
||||
"domain": "blockchain",
|
||||
"name": "Blockchain.info",
|
||||
"name": "Blockchain.com",
|
||||
"documentation": "https://www.home-assistant.io/integrations/blockchain",
|
||||
"requirements": ["python-blockchain-api==0.0.2"],
|
||||
"dependencies": [],
|
||||
|
@ -1,4 +1,4 @@
|
||||
"""Support for Blockchain.info sensors."""
|
||||
"""Support for Blockchain.com sensors."""
|
||||
from datetime import timedelta
|
||||
import logging
|
||||
|
||||
@ -12,7 +12,7 @@ from homeassistant.helpers.entity import Entity
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
ATTRIBUTION = "Data provided by blockchain.info"
|
||||
ATTRIBUTION = "Data provided by blockchain.com"
|
||||
|
||||
CONF_ADDRESSES = "addresses"
|
||||
|
||||
@ -31,7 +31,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
||||
|
||||
|
||||
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
"""Set up the Blockchain.info sensors."""
|
||||
"""Set up the Blockchain.com sensors."""
|
||||
|
||||
addresses = config.get(CONF_ADDRESSES)
|
||||
name = config.get(CONF_NAME)
|
||||
@ -45,7 +45,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
|
||||
|
||||
class BlockchainSensor(Entity):
|
||||
"""Representation of a Blockchain.info sensor."""
|
||||
"""Representation of a Blockchain.com sensor."""
|
||||
|
||||
def __init__(self, name, addresses):
|
||||
"""Initialize the sensor."""
|
||||
|
Loading…
Reference in New Issue
Block a user